Skip to main content

OTCQuoteResponse

successbooleanrequired

Request validation result. true when the HTTP status is 200.

codeintegerrequired

Request status code. 1 on success; otherwise an error code.

msgstringrequired

Request status message. Success on success; otherwise an error message.

timenumberrequired

Current Unix timestamp.

data objectrequired
quoteIdstringrequired

Quote ID

clOrderIdstringrequired

Client order ID assigned by the client

sideTxnSideEnumrequired

Transaction side

Possible values: [BUY, SELL]

baseSizestringrequired

Size in baseCurrency. Max 8 decimal places when side=BUY; max 9 decimal places when side=SELL.

baseCurrencystringrequired

Base currency

quoteSizestringrequired

Size in quoteCurrency. Max 9 decimal places when side=BUY; max 8 decimal places when side=SELL.

quoteCurrencystringrequired

Quote currency

ratiostringrequired

How many quoteCurrency per one baseCurrency (quoteSize / baseSize). Max 10 decimal places.

statusOTCQuoteStatusEnumrequired

Quote status

Possible values: [NEW_QUOTE, REQUOTE, COMPLETED, EXPIRED]

expireTimenumberrequired

Expiration timestamp (Unix ms)

ttlnumber

Time to live in seconds

OTCQuoteResponse
{
"success": true,
"code": 0,
"msg": "string",
"time": 0,
"data": {
"quoteId": "string",
"clOrderId": "string",
"side": "BUY",
"baseSize": "string",
"baseCurrency": "string",
"quoteSize": "string",
"quoteCurrency": "string",
"ratio": "string",
"status": "NEW_QUOTE",
"expireTime": 0,
"ttl": 0
}
}