Exchange

get
Get exchange rate

https://api.vndc.io/merchant/load_rate_exchange
Request
Response
Request
Headers
Access-Client-Token
required
string
Response
200: OK
bid : Buy In ask : Sell out
{
"BTCVNDC": {
"bid": "174914489.33277",
"ask": "178044294.82389",
"time": 1587695992,
"market": "BTCVNDC"
},
"CHIVNDC": {
"bid": "4595000",
"ask": "4680000",
"time": 1587695992,
"market": "CHIVNDC"
},
"ETHVNDC": {
"bid": "4376152.2166848",
"ask": "4462464.0308183",
"time": 1587695992,
"market": "ETHVNDC"
},
"USDSVNDC": {
"bid": "23182.83",
"ask": "23899.63",
"time": 1587695992,
"market": "USDSVNDC"
},
"USDTVNDC": {
"bid": "23417",
"ask": "23663",
"time": 1587695992,
"market": "USDTVNDC"
}
}
401: Unauthorized
{
"code": "missingAuthorization",
"message": "Unauthorized access. Missing or invalid access client token"
}

post
Exchange

https://api.vndc.io/merchant/submit_exchange_crypto
Request
Response
Request
Headers
Access-Client-Token
required
string
Body Parameters
coin_from
required
string
VNDC
coin_to
required
string
USDT
amount
required
string
Amount of "coin_from"
Response
200: OK
{
"code": "success"
}
401: Unauthorized
{
"code": "missingAuthorization",
"message": "Unauthorized access. Missing or invalid access client token"
}
Possible value are:
. missingAuthorization: Unauthorized access. Missing or invalid access client token
. notEnoughBalanceAvailable: Not enough available balance
403: Forbidden
{
"code": "createExchangeFailure",
"message": "Exchange order creation failed"
}
404: Not Found
{
"code": "emptyMarket",
"message": "Market is required"
}
Possible value are:
. emptyMarket: Market is required
. emptyAmount: Amount is required
. invalidAmount: Account is not valid
. notFoundPrice: No exchange rates found
. limitPriceUpper: Exchange price is too small
. limitPriceUnder: Exchange price is too big
. limitPriceExchange: The exchange price is too small or too big
. limitMinAmount: Amount is too small
. limitMaxAmount: Amount is too big
. notFoundConfigInfo: No configuration information foun