Retrieves the values for currency codes including the ID, Symbol, description, isDeleted, and short code from the Source List of Currency Codes Data Block. By default, the Source List of Currency Codes Data Block is static (see Example Definition).
If desired, this Data Block can be altered to source the list of currencies from another source, or the definition may be directly edited to continue use the Data Block as Constant Data Block with customized values.
General Info #
Field | Value |
---|---|
Name | Source_ListOfCurrencyCodes |
Block Category | Interface |
Block Type | Constant |
Data Category | None |
Output Type | Data Table |
Example Definition #
outputlist=[]
data_df = pd.DataFrame(read("Source_ListOfCurrencyCodes",{})["data"])
if data_df.shape[0]>0:
if "BatchID" not in data_df.columns:
data_df["BatchID"]=""
for i in range(0, data_df.shape[0]):
outputlist.append({ "ID": data_df.loc[i,"ID"],"Symbol": data_df.loc[i,"Symbol"],"Currency": data_df.loc[i,"Currency"],"Description": data_df.loc[i,"Description"],"IsDeleted": data_df.loc[i,"IsDeleted"],"ShortCode": data_df.loc[i,"ShortCode"]})
response["data"] = outputlist
Example Request #
{}
Example Response #
The following response has been truncated for brevity.
{
"data": [
{
"ID": "190",
"Symbol": "$ ",
"Currency": "AUD",
"Description": "Australian Dollar",
"IsDeleted": null,
"ShortCode": "au"
},
{
"ID": "209",
"Symbol": "$ ",
"Currency": "CAD",
"Description": "Canadian Dollar",
"IsDeleted": null,
"ShortCode": "ca"
},
{
"ID": "333",
"Symbol": "$ ",
"Currency": "USD",
"Description": "US Dollar",
"IsDeleted": null,
"ShortCode": "us"
}
],
"errors": [],
"success": true,
"logs": []
}