Exchange
포인트 교환 관련 API
포인트를 암호화폐로 전환합니다
Header parameters
x-api-keystringRequiredDefault:
API Key
TEST_API_KEYExample: TEST_API_KEYBody
uuidstringRequiredExample:
사용자 UUID
40115395-195e-4c14-b5f4-261f13da353esymbolstringRequiredExample:
토큰 심볼
BTCcexTypestringRequiredExample:
거래소 타입
binancepointAmountstringRequiredExample:
포인트 수량
100pointTypestringRequiredExample:
포인트 타입
OK-CASHBAGResponses
200
전환 성공
application/json
401
인증 실패
post
/tikkly-b2c/exchange/convert-point-to-coinPOST /tikkly-b2c/exchange/convert-point-to-coin HTTP/1.1
Host: api-b2c.tikkly.io
x-api-key: TEST_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 127
{
"uuid": "40115395-195e-4c14-b5f4-261f13da353e",
"symbol": "BTC",
"cexType": "binance",
"pointAmount": "100",
"pointType": "OK-CASHBAG"
}{
"statusCode": 200,
"message": "Success",
"data": {
"orderId": "123456789"
}
}포인트를 코인으로 전환할 때의 예상 견적을 조회합니다
Header parameters
x-api-keystringRequiredDefault:
API Key
TEST_API_KEYExample: TEST_API_KEYBody
symbolstringRequiredExample:
토큰 심볼
BTCcexTypestringRequiredExample:
거래소 타입
binancepointAmountstringRequiredExample:
포인트 수량
100pointTypestringRequiredExample:
포인트 타입
OK-CASHBAGResponses
200
견적 조회 성공
application/json
401
인증 실패
post
/tikkly-b2c/exchange/convert-quotePOST /tikkly-b2c/exchange/convert-quote HTTP/1.1
Host: api-b2c.tikkly.io
x-api-key: TEST_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 81
{
"symbol": "BTC",
"cexType": "binance",
"pointAmount": "100",
"pointType": "OK-CASHBAG"
}{
"statusCode": 200,
"message": "Success",
"data": {
"fromAsset": "USDT",
"toAsset": "BTC",
"fromAmount": "100",
"toAmount": "0.002",
"ratio": "50000",
"price": "50000"
}
}사용자의 포인트 전환 내역을 조회합니다
Header parameters
x-api-keystringRequiredDefault:
API Key
TEST_API_KEYExample: TEST_API_KEYBody
uuidstringRequiredExample:
사용자 UUID
40115395-195e-4c14-b5f4-261f13da353esincenumberOptionalExample:
시작 시간 (Unix timestamp, 0 = 전체)
0untilnumberOptionalExample:
종료 시간 (Unix timestamp, 0 = 전체)
0Responses
200
내역 조회 성공
application/json
401
인증 실패
post
/tikkly-b2c/exchange/convert-quote-historyPOST /tikkly-b2c/exchange/convert-quote-history HTTP/1.1
Host: api-b2c.tikkly.io
x-api-key: TEST_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 67
{
"uuid": "40115395-195e-4c14-b5f4-261f13da353e",
"since": 0,
"until": 0
}{
"statusCode": 200,
"message": "Success",
"data": [
{
"id": 1,
"orderId": "123456789",
"pointType": "OK-CASHBAG",
"pointAmount": "100",
"fromAsset": "USDT",
"toAsset": "BTC",
"fromAmount": "100",
"toAmount": "0.002",
"status": "COMPLETED",
"createdAt": "2024-01-15T10:30:00Z"
}
]
}