Call this API to retrieve the list of all contracts you have booked with Smart.
Request URL #
https://api-sandbox.smartcurrencyexchange.com/v4/Trade/GetFxContractHistory
Field | In | Format | Description | Required |
Authorization | header | string | Authentication token | Mandatory |
Response Sample #
{
"status": "OK",
"message": "",
"singleObject": null,
"objectCollection": [
{
"type": "Spot",
"rate": {
"rate": 93.6764754,
"rateId": 3605614,
"sourceCurrency": "GBP",
"targetCurrency": "INR",
"sourceAmount": 3000.0000000,
"targetAmount": 281029.4200000,
"numberOfTransfers": 1
},
"channel": "API",
"timestamp": "2022-06-17T14:19:19.91",
"fxContractId": "FX2022-35791",
"fxId": 1418328,
"sourceCurrency": "GBP",
"targetCurrency": "INR",
"sourceAmount": 3000.00,
"targetAmount": 281029.42,
"status": "Approved",
"extRefID": null
},
]
Response codes #
HTTP Status | Description | Message |
200 | Success | |
401 | Token Expired or invalid token | Token is no longer valid, please login again. |
401 | Missing token | Please add ‘Authorization’ to your request header. |