# Trading

거래 관련 API

## 출금 요청

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

```json
{"openapi":"3.0.0","info":{"title":"Tikkly B2C API","version":"0.0.1"},"tags":[{"name":"Trading","description":"거래 관련 API"}],"servers":[{"url":"https://api-b2c.tikkly.io","description":"Development Server (Active)"},{"url":"https://api.tikkly.com","description":"Production Server"},{"url":"http://localhost:8081","description":"Local Development Server"}],"paths":{"/tikkly-b2c/trading/withdraw":{"post":{"tags":["Trading"],"summary":"출금 요청","description":"암호화폐 출금을 요청합니다","parameters":[{"in":"header","name":"x-api-key","required":true,"schema":{"type":"string","default":"TEST_API_KEY"},"description":"API Key"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["uuid","coin","cexType","amount","address","network"],"properties":{"uuid":{"type":"string","description":"사용자 UUID"},"coin":{"type":"string","description":"코인 심볼"},"cexType":{"type":"string","description":"거래소 타입"},"amount":{"type":"string","description":"출금 수량"},"address":{"type":"string","description":"출금 주소"},"network":{"type":"string","description":"네트워크"}}}}}},"responses":{"200":{"description":"출금 요청 성공","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"number"},"message":{"type":"string"},"data":{"type":"object","properties":{"withdrawId":{"type":"string"},"status":{"type":"string"}}}}}}}},"401":{"description":"인증 실패"}}}}}}
```

## 출금 내역 조회

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

```json
{"openapi":"3.0.0","info":{"title":"Tikkly B2C API","version":"0.0.1"},"tags":[{"name":"Trading","description":"거래 관련 API"}],"servers":[{"url":"https://api-b2c.tikkly.io","description":"Development Server (Active)"},{"url":"https://api.tikkly.com","description":"Production Server"},{"url":"http://localhost:8081","description":"Local Development Server"}],"paths":{"/tikkly-b2c/trading/withdraw-history":{"post":{"tags":["Trading"],"summary":"출금 내역 조회","description":"사용자의 출금 내역을 조회합니다","parameters":[{"in":"header","name":"x-api-key","required":true,"schema":{"type":"string","default":"TEST_API_KEY"},"description":"API Key"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["uuid"],"properties":{"uuid":{"type":"string","description":"사용자 UUID"},"since":{"type":"number","description":"시작 시간 (Unix timestamp, 0 = 전체)"},"until":{"type":"number","description":"종료 시간 (Unix timestamp, 0 = 전체)"}}}}}},"responses":{"200":{"description":"내역 조회 성공","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"number"},"message":{"type":"string"},"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"number"},"withdrawId":{"type":"string"},"coin":{"type":"string"},"amount":{"type":"string"},"address":{"type":"string"},"network":{"type":"string"},"status":{"type":"string"},"txHash":{"type":"string"},"createdAt":{"type":"string","format":"date-time"}}}}}}}}},"401":{"description":"인증 실패"}}}}}}
```
