Trading

거래 관련 API

출금 요청

post
/tikkly-b2c/trading/withdraw

암호화폐 출금을 요청합니다

Header parameters
x-api-keystringRequired

API Key

Default: TEST_API_KEYExample: TEST_API_KEY
Body
uuidstringRequired

사용자 UUID

Example: 40115395-195e-4c14-b5f4-261f13da353e
coinstringRequired

코인 심볼

Example: BTC
cexTypestringRequired

거래소 타입

Example: binance
amountstringRequired

출금 수량

Example: 0.001
addressstringRequired

출금 주소

Example: 0x1234567890abcdef1234567890abcdef12345678
networkstringRequired

네트워크

Example: APT
Responses
200

출금 요청 성공

application/json
post
/tikkly-b2c/trading/withdraw
POST /tikkly-b2c/trading/withdraw HTTP/1.1
Host: api-b2c.tikkly.io
x-api-key: TEST_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 168

{
  "uuid": "40115395-195e-4c14-b5f4-261f13da353e",
  "coin": "BTC",
  "cexType": "binance",
  "amount": "0.001",
  "address": "0x1234567890abcdef1234567890abcdef12345678",
  "network": "APT"
}
{
  "statusCode": 200,
  "message": "Success",
  "data": {
    "withdrawId": "withdraw-123456789",
    "status": "PROCESSING"
  }
}

출금 내역 조회

post
/tikkly-b2c/trading/withdraw-history

사용자의 출금 내역을 조회합니다

Header parameters
x-api-keystringRequired

API Key

Default: TEST_API_KEYExample: TEST_API_KEY
Body
uuidstringRequired

사용자 UUID

Example: 40115395-195e-4c14-b5f4-261f13da353e
sincenumberOptional

시작 시간 (Unix timestamp, 0 = 전체)

Example: 0
untilnumberOptional

종료 시간 (Unix timestamp, 0 = 전체)

Example: 0
Responses
200

내역 조회 성공

application/json
post
/tikkly-b2c/trading/withdraw-history
POST /tikkly-b2c/trading/withdraw-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,
      "withdrawId": "withdraw-123456789",
      "coin": "BTC",
      "amount": "0.001",
      "address": "0x1234567890abcdef1234567890abcdef12345678",
      "network": "APT",
      "status": "COMPLETED",
      "txHash": "0xabc123...",
      "createdAt": "2024-01-15T10:30:00Z"
    }
  ]
}