The function of the exchange rate service which is currently used is to change nominal changes to crypto tokens or vice versa. The exchange rate is divided into two products, namely IDR to Crypto and Crypto to IDR.
Action Exchange Rate
Action method in Exchange Rate :
- Indodax Crypto to IDR
- Indodax IDR to Crypto
- TokoCrypto to IDR
- TokoCrypto IDR to Crypto
Payload Data
Name | Data Type |
---|---|
Exchange | String |
Amount | String |
Indodax Crypto to IDR
Example Request
{
"Subject":"exchangerate",
"SubjectType":"indodax",
"SubjectIdentifier":"cryptotoidr",
"Action":"get",
"ResourceType":"data",
"Resource":"",
"ResourceId":"",
"Data":{
"exchange": "maticidr",
"amount": "939.4"
}
}
Indodax IDR to Crypto
Example Request
{
"Subject":"exchangerate",
"SubjectType":"indodax",
"SubjectIdentifier":"idrtocrypto",
"Action":"get",
"ResourceType":"data",
"Resource":"",
"ResourceId":"",
"Data":{
"exchange": "solidr",
"amount": "35000"
}
}
TokoCrypto to IDR
Example Request
{
"Subject":"exchangerate",
"SubjectType":"tokocrypto",
"SubjectIdentifier":"cryptotoidr",
"Action":"get",
"ResourceType":"data",
"Resource":"",
"ResourceId":"",
"Data":{
"exchange": "btcidr",
"amount": "939.4"
}
}
TokoCrypto IDR to Crypto
Example Request
{
"Subject":"exchangerate",
"SubjectType":"tokocrypto",
"SubjectIdentifier":"idrtocrypto",
"Action":"get",
"ResourceType":"data",
"Resource":"",
"ResourceId":"",
"Data":{
"exchange": "qoin_idr",
"amount": "939.4"
}
}