Repository navigation
Interface
BCEX-TECHNOLOGY-LIMITED edited this page May 15, 2019
·
14 revisions
Request 파라미터
| 파라미터 명칭 | 필수 여부 | 데이터 유형 | 기술 | 초기값 | 값의 범위 |
|---|---|---|---|---|---|
| page | 예 | string | 페이지 | 1~10000 | |
| size | 예 | string | 페이지당 반영 수량 | 1~100 | |
| tokens | 예 | array | 코인배열 | ["BTC","ETH"...] |
**Reponse 파라미터 **
{
"code": 0,
"msg": "successful",
"data": {
"count": 3,
"data": [
{
"user_id": 1,
"org_id": 12,
"token": "BTC",
"token_as": "BTC",
"usable": "0",
"locked": "0",
"total": "0"
},
{
"user_id": 1,
"org_id": 12,
"token": "ETH",
"token_as": "ETH",
"usable": "0",
"locked": "0",
"total": "0"
}
]
}
}
data설명:
"data": [
{
"user_id": 회원id,
"org_id": 기관id,
"token": 코인,
"token_as": 코인심벌,
"usable": 사용가능한 자산,
"locked": 증거금,
"total": 총자산
}
]
** Request 파라미터 ** ** Reponse 파라미터 **
{
"code": 0,
"msg": "Operational success",
"data": {
"BTC": {
"calc_precision": 4,
"biz_precision": 8,
"phy_precision": 8
},
"ETH": {
"calc_precision": 4,
"biz_precision": 8,
"phy_precision": 8
},
"EOS": {
"calc_precision": 4,
"biz_precision": 8,
"phy_precision": 8
},
"USDT": {
"calc_precision": 4,
"biz_precision": 8,
"phy_precision": 8
},
"QTUM": {
"calc_precision": 4,
"biz_precision": 8,
"phy_precision": 8
}
}
}
data설명:
{
"calc_precision": 계산 정밀도,
"phy_precision": 출금 수량 정밀도,
"biz_precision": 주문 수량 정밀도
}
Request 파라미터
| 파라미터 명칭 | 필수 여부 | 데이터 유형 | 기술 | 초기값 | 값의 범위 |
|---|---|---|---|---|---|
| time_type | 예 | string | K라인 유형 | 1、5、10、15、30、60、240、1440、10080、43200 | |
| market | 예 | string | 마켓 | ||
| token | 예 | string | 코인 | ||
| limit | 예 | string | 수량 |
Reponse 파라미터
{
"code": 0,
"msg": "success",
"data": [
{
"amount": "1",
"c_price": "100",
"o_price": "100",
"min_price": "100",
"max_price": "100",
"volume": "0",
"timestamp": 1535618520000
},
{
"amount": "1",
"c_price": "100",
"o_price": "100",
"min_price": "100",
"max_price": "100",
"volume": "0",
"timestamp": 1535618580000
}
]
}
data설명
"data": [
{
"amount": 거래량,
"c_price": 전일종가,
"o_price": 시초가,
"min_price": 최저가,
"max_price": 최고가,
"volume": 거래금액,
"timestamp": 시간
}
]
Request 파라미터
| 파라미터 명칭 | 필수 여부 | 데이터 유형 | 기술 | 초기값 | 값의 범위 |
|---|---|---|---|---|---|
| time_type | 예 | string | K라인 유형 | 1、5、10、15、30、60、240、1440、10080、43200 | |
| market | 예 | string | 마켓 | ||
| token | 예 | string | 코인 | ||
| limit | 예 | string | 수량 | ||
| X-Forwarded-Host | 예 | string | 청구서 머리글 | www.bcex.kr | header |
Reponse 파라미터
{
"code": 0,
"msg": "success",
"data": [
{
"amount": "1",
"c_price": "100",
"o_price": "100",
"min_price": "100",
"max_price": "100",
"volume": "0",
"timestamp": 1535618520000
},
{
"amount": "1",
"c_price": "100",
"o_price": "100",
"min_price": "100",
"max_price": "100",
"volume": "0",
"timestamp": 1535618580000
}
]
}
data설명
"data": [
{
"amount": 거래량,
"c_price": 전일종가,
"o_price": 시초가,
"min_price": 최저가,
"max_price": 최고가,
"volume": 거래금액,
"timestamp": 시간
}
]
Request 파라미터 인터페이스 api_key 로 요청
Reponse 파라미터
{
"code": 0,
"msg": "success",
"data": {
"main": {
"USDT": [
{
"id": 10,
"vol": "27337458.015767",
"market": "USDT",
"market_as": "USDT",
"token": "BTC",
"token_as": "BTC",
"sort": 0,
"opening_time": null,
"amount": "3826.3038",
"max_price": "8002.4452",
"min_price": "5075.06",
"open_price": "6799",
"is_up": "-1",
"prev_price": "6634.66",
"p_precision": "4",
"n_precision": "4",
"currency": {
"CNY": "45768.321",
"KRW": "7447036.4739"
},
"latest_price": "6633.09",
"percent_change": "-0.1348463208"
},
{
"id": 11,
"vol": "607.3851",
"market": "USDT",
"market_as": "USDT",
"token": "ETH",
"token_as": "ETH",
"sort": 0,
"opening_time": null,
"amount": "2.23",
"max_price": "272.37",
"min_price": "272.37",
"open_price": "272.37",
"is_up": "1",
"prev_price": "228.84",
"p_precision": "4",
"n_precision": "4",
"currency": {
"CNY": "1876.6293",
"KRW": "305349.349473"
},
"latest_price": "272.37",
"percent_change": "0.1902202412"
}
],
"ETH": [
{
"id": 14,
"vol": "0",
"market": "ETH",
"market_as": "ETH",
"token": "QTUM",
"token_as": "QTUM",
"sort": 0,
"opening_time": null,
"amount": "0",
"max_price": "0.0212",
"min_price": "0.0212",
"open_price": "0.0212",
"is_up": "-1",
"prev_price": "0.0222",
"p_precision": "8",
"n_precision": "4",
"currency": {
"CNY": "16.512424185",
"KRW": "2658.6213073839"
},
"latest_price": "0.0212",
"percent_change": "0"
}
]
},
"hot": [
{
"id": 14,
"vol": "0",
"market": "ETH",
"market_as": "ETH",
"token": "QTUM",
"token_as": "QTUM",
"sort": 0,
"opening_time": null,
"amount": "0",
"max_price": "0.0212",
"min_price": "0.0212",
"open_price": "0.0212",
"is_up": "-1",
"prev_price": "0.0222",
"p_precision": "8",
"n_precision": "4",
"currency": {
"CNY": "16.512424185",
"KRW": "2658.6213073839"
},
"latest_price": "0.0212",
"percent_change": "0"
},
{
"id": 10,
"vol": "27337458.015767",
"market": "USDT",
"market_as": "USDT",
"token": "BTC",
"token_as": "BTC",
"sort": 0,
"opening_time": null,
"amount": "3826.3038",
"max_price": "8002.4452",
"min_price": "5075.06",
"open_price": "6799",
"is_up": "-1",
"prev_price": "6634.66",
"p_precision": "4",
"n_precision": "4",
"currency": {
"CNY": "45768.321",
"KRW": "7447036.4739"
},
"latest_price": "6633.09",
"percent_change": "-0.1348463208"
}
],
"by_percent":[
{
"id": 11,
"vol": "607.3851",
"market": "USDT",
"market_as": "USDT",
"token": "ETH",
"token_as": "ETH",
"sort": 0,
"opening_time": null,
"amount": "2.23",
"max_price": "272.37",
"min_price": "272.37",
"open_price": "272.37",
"is_up": "1",
"prev_price": "228.84",
"p_precision": "4",
"n_precision": "4",
"currency": {
"CNY": "1876.6293",
"KRW": "305349.349473"
},
"latest_price": "272.37",
"percent_change": "0.1902202412"
},
{
"id": 32,
"vol": "0.5769332",
"market": "ETH",
"market_as": "ETH",
"token": "ONT",
"token_as": "ONT",
"sort": 0,
"opening_time": null,
"amount": "4",
"max_price": "0.1442333",
"min_price": "0.1442333",
"open_price": "0.1442333",
"is_up": "1",
"prev_price": "0.1442",
"p_precision": "8",
"n_precision": "4",
"currency": {
"CNY": "112.3415769435",
"KRW": "18087.8171987879"
},
"latest_price": "0.1442333",
"percent_change": "0.0002309292"
}
],
"by_time": [
{
"id": 14,
"vol": "0",
"market": "ETH",
"market_as": "ETH",
"token": "QTUM",
"token_as": "QTUM",
"sort": 0,
"opening_time": null,
"amount": "0",
"max_price": "0.0212",
"min_price": "0.0212",
"open_price": "0.0212",
"is_up": "-1",
"prev_price": "0.0222",
"p_precision": "8",
"n_precision": "4",
"currency": {
"CNY": "16.512424185",
"KRW": "2658.6213073839"
},
"latest_price": "0.0212",
"percent_change": "0"
},
{
"id": 10,
"vol": "27337458.015767",
"market": "USDT",
"market_as": "USDT",
"token": "BTC",
"token_as": "BTC",
"sort": 0,
"opening_time": null,
"amount": "3826.3038",
"max_price": "8002.4452",
"min_price": "5075.06",
"open_price": "6799",
"is_up": "-1",
"prev_price": "6634.66",
"p_precision": "4",
"n_precision": "4",
"currency": {
"CNY": "45768.321",
"KRW": "7447036.4739"
},
"latest_price": "6633.09",
"percent_change": "-0.1348463208"
}
]
}
}
data설명
{
"code":0,
"msg":"success",
"data"{
"main":{
"USDT":[ 마켓
{
"id": id,
"vol": 거래금액,
"market": 마켓,
"market_as": 마켓심벌,
"token": 코인,
"token_as": 코인심벌,
"sort":서열,
"opening_time":개장 시간,
"amount": 거래량,
"max_price": 최고가,
"min_price": 최저가,
"open_price": 시초가,
"is_up": 등락여부 1등 -1락,
"prev_price": 이전 가격,
"p_precision": 가격 정밀도,
"n_precision": 수량 정밀도,
"currency": { 환산화폐,
"CNY":위안화,
"KRW":원화
},
"latest_price": 현재가,
"percent_change": 등락폭
}
],
"ETH":[
]
},
"hot":[],거래량 제일 많은 4개 거래쌍
"by_percent":[],등락폭이 제일 큰 4개 거래쌍
"by_time":[],최신 거래쌍
}
}
Request 파라미터
| 파라미터 명칭 | 필수 여부 | 데이터 유형 | 기술 | 초기값 | 값의 범위 |
|---|---|---|---|---|---|
| market | 예 | string | 마켓 | ||
| token | 예 | string | 코인 |
Reponse 파라미터
[
{
"created_at": "2018-08-31 11:26:10",
"price": "1",
"amount": "0",
"volume": "0",
"dominance": "2"
},
{
"created_at": "2018-08-31 10:26:14",
"price": "1",
"amount": "1",
"volume": "1",
"dominance": "1"
}
]
data설명
[
{
"created_at": 생성시간,
"price": 가격,
"amount": 기준통화 코인 금액,
"volume": 상대통화 코인 금액,
"dominance": taker 1매수 2매도
}
]
Request 파라미터
| 파라미터 명칭 | 필수 여부 | 데이터 유형 | 기술 | 초기값 | 값의 범위 |
|---|---|---|---|---|---|
| page | 예 | string | 페이지 | 1~10000 | |
| size | 예 | string | 페이지당 반영 수량 | 1~100 | |
| market | 예 | string | 마켓 | ||
| token | 예 | string | 코인 |
Reponse 파라미터
{
"code": 0,
"msg": "successful",
"data": [
{
"id": 1,
"created_at": "2018-08-31 10:26:14",
"price": "1",
"amount": "1",
"dominance": "1"
},
{
"id": 2,
"created_at": "2018-08-31 10:26:14",
"price": "1",
"amount": "1",
"dominance": "1"
}
]
}
data설명
"data": [
{
"id": 거래id,
"price": 체결가격,
"amount": 거래량,
"dominance": Taker(1매수 2매도),
"created_at": 거래시간
}
]
Request 파라미터
| 파라미터 명칭 | 필수 여부 | 데이터 유형 | 기술 | 초기값 | 값의 범위 |
|---|---|---|---|---|---|
| market | 예 | string | 마켓 | ||
| token | 예 | string | 코인 |
Reponse 파라미터
{
"code": 0,
"msg": "success",
"data": {
"bids": [
["6595.25", "20"],
["6595.24", "2.73"],
["6595.14", "3.25"],
["6594.61", "3.34"],
],
"asks": [
["7713.62", "0.23"],
["7712.74", "10.98"],
["7712.52", "1.81"],
["7712.45", "0.66"],
]
}
}
data설명
{
"bids": [
[
"2.8", //가격
"6.32" //수량
],
[
"2.77", //가격
"6.72" //수량
]
],
"asks": [
[
"5.6", //가격
"2.3" //수량
]
]
}
Request 파라미터
| 파라미터 명칭 | 필수여부 | 데이터 유형 | 기술 | 초기값 | 값의범위 |
|---|---|---|---|---|---|
| market | 예 | string | 마켓 | ||
| token | 예 | string | 코인 |
Response 파라미터
{
"buy": "0.02657781",
"sell": "1.1998887"
}
data설명
{
"buy": "0.02657781", //매수 최고가
"sell": "1.1998887" //매도 최저가
}
Request 파라미터
| 파라미터 명칭 | 필수 여부 | 데이터 유형 | 기술 | 초기값 | 값의 범위 |
|---|---|---|---|---|---|
| market | 예 | string | 마켓 | ||
| token | 예 | string | 코인 |
Reponse 파라미터
{
"code": 0,
"msg": "success",
"data": {
"buy": {
"orders": [{
"price": "270.99",
"exchange": {
"CNY": "6.9",
"KRW": "1122.71"
},
"fiat": "CNY",
"percent_change": "",
"amount": "2",
"matching_amount": "2",
"matched_amount": "0"
}, {
"price": "99",
"exchange": {
"CNY": "6.9",
"KRW": "1122.71"
},
"fiat": "CNY",
"percent_change": "",
"amount": "1",
"matching_amount": "1",
"matched_amount": "0"
}],
"best_price": "270.99",
"max_amount": "2"
},
"sell": {
"orders": [],
"best_price": "0",
"max_amount": "0"
}
}
}
data설명
{
"code": 0,
"msg": "success",
"data": {
"buy": { //매수
"orders": [{ //주문 목록
"price": //가격
"exchange": { // 환산가격
"CNY" //위안엔
"KRW" //원
},
"fiat" //
"percent_change": //등락폭
"amount": //주문 수량
"matching_amount": //미체결 수량
"matched_amount": //체결 수량
}],
"best_price": //최고 매수 가격
"max_amount": //주문 최대량
},
"sell": { //매도
"orders": [], //주문 목록
"best_price": //매도 최저가
"max_amount": //최대 주문 수량
}
}
}
Request 파라미터
| 파라미터 명칭 | 필수 여부 | 데이터 유형 | 기술 | 초기값 | 값의 범위 |
|---|---|---|---|---|---|
| market_type | 예 | string | 마켓유형 | 1 | |
| market | 예 | string | 마켓 | ||
| token | 예 | string | 코인 | ||
| type | 예 | string | 매수/매도 | 1매수 2매도 | |
| price | 예 | string | 가격 | ||
| amount | 예 | string | 수량 |
Reponse 파라미터
{
"code": 0,
"msg": "successful",
"data": {
"id": 1,
"status": 1,
"order_no": "2018090313134038386500017289",
"type": "1",
"market_type": "1",
"account_id": 6,
"org_id": 12,
"user_id": 1,
"market": "BTC",
"token": "ETH",
"price": "0.05",
"amount": "1",
"volume": "0.05",
"matched_amount": "0",
"matched_volume": "0",
"avg_price":"0",
"created_at": "2018-09-03 13:13:40",
"updated_at": "2018-09-03 13:13:40"
}
}
data설명
"data": {
"id": 주문id,
"status": 상태 0취소됨 1생성됨 2체결대기중 3완료,
"order_no": 주문번호,
"type": 유형 1매수 2매도,
"market_type": 마켓유형 1매수 2매도,
"account_id_from": 매수자 회원id',
"account_id_to": 매도자 회원id',
"org_id": 기관id,
"user_id": 회원id,
"market": 마켓,
"token": 코인,
"price": 가격,
"amount": 기준통화 코인 금액,
"volume": 상대통화 코인 금액,
"matched_amount": 매칭된 기준통화 코인 금액,
"matched_volume": 매칭된 상대통화 코인 금액,
"avg_price": 매칭된 부분 평균단가,
"created_at": 생성시간,
"updated_at": 업데이트 시간
}
Request 파라미터
| 파라미터 명칭 | 필수 여부 | 데이터 유형 | 기술 | 초기값 | 값의 범위 |
|---|---|---|---|---|---|
| data | 예 | array | 주문배열 |
Reponse 파라미터
{
"code": 0,
"msg": "successful",
"data": [
{
"id": 1,
"status": 1,
"type": 1,
"market_type": 1,
"order_no": "2018090313134038386500017289",
"account_id": 6,
"user_id": 1,
"org_id": 12,
"market": "BTC",
"token": "ETH",
"price": "0.05",
"amount": "1",
"volume": "0.05",
"matched_amount": "0",
"matched_volume": "0",
"avg_price":"0",
"created_at": "2018-09-03 13:13:40",
"updated_at": "2018-09-03 13:13:40"
},
{
"id": 2,
"status": 1,
"type": 1,
"market_type": 1,
"order_no": "2018090313134038386500017299",
"account_id": 6,
"user_id": 1,
"org_id": 12,
"market": "BTC",
"token": "ETH",
"price": "0.05",
"amount": "1",
"volume": "0.05",
"matched_amount": "0",
"matched_volume": "0",
"avg_price":"0",
"created_at": "2018-09-03 13:13:42",
"updated_at": "2018-09-03 13:13:42"
}
]
}
data설명
"data": {
"id": 주문id,
"status": 상태 0취소됨 생섬됨 2매칭중 3완료,
"order_no": 주문번호,
"type": 유형 1매수 2매도,
"market_type": 마켓유형 지정가 거래1,
"account_id_from": 매수자 계정id',
"account_id_to": 매도자 계정id,
"org_id": 기관id,
"user_id": 회원id,
"market": 마켓,
"token": 코인,
"price": 가격,
"amount": 기준통화 코인 금액,
"volume": 상대통화 코인 금액,
"matched_amount": 매칭된 기준통화 코인 금액,
"matched_volume": 매칭된 상대통화 코인 금액,
"avg_price":매칭된 부분 평균단가,
"created_at": 생성시간,
"updated_at": 업데이트 시간
}
Request 파라미터
| 파라미터 명칭 | 필수 여부 | 데이터 유형 | 기술 | 초기값 | 값의 범위 |
|---|---|---|---|---|---|
| arr_order_no | 예 | array | 상태 |
Reponse 파라미터
{
"code": 0,
"msg": "successful",
"data": [
{
"id": 1,
"status": 1,
"type": 1,
"market_type": 1,
"order_no": "2018090313134038386500017289",
"account_id": 6,
"user_id": 1,
"org_id": 12,
"market": "BTC",
"market_as": "BTC",
"token": "ETH",
"token_as": "ETH",
"price": "0.05",
"amount": "1",
"volume": "0.05",
"matched_amount": "0",
"matched_volume": "0",
"avg_price":"0",
"created_at": "2018-09-03 13:13:40",
"updated_at": "2018-09-03 13:13:40",
"unmatched_amount": "1"
},
{
"id": 2,
"status": 1,
"type": 1,
"market_type": 1,
"order_no": "2018090313134038386500017299",
"account_id": 6,
"user_id": 1,
"org_id": 12,
"market": "BTC",
"market_as": "BTC",
"token": "ETH",
"token_as": "ETH",
"price": "0.05",
"amount": "1",
"volume": "0.05",
"matched_amount": "0",
"matched_volume": "0",
"avg_price":"0",
"created_at": "2018-09-03 13:13:42",
"updated_at": "2018-09-03 13:13:42",
"unmatched_amount": "1"
}
]
data설명
"data": {
"id": 주문 id,
"status": 상태 0취소됨 생성됨 2매칭중 3완료,
"order_no": 주문번호,
"type": 유형 1매수 2매도
"market_type": 마켓유형 지정가 거래1,
"account_id_from": 매수자 회원id',
"account_id_to": 매도자 회원id',
"org_id": 기관id,
"user_id": 회원id,
"market": 마켓,
"market_as": 마켓심벌,
"token": 코인,
"token_as": 코인심벌 ,
"price": 가격,
"amount": 기준통화 코인 금액,
"volume": 상대통화 코인 금액,
"matched_amount": 매칭된 기준통화 코인 금액,
"matched_volume": 매칭된 상대통화 코인 금액,
"unmatched_amount": 매칭 대기중인 기준통화 코인 금액,
"avg_price": 매칭된 부분 평균단가,
"created_at": 생성시간,
"updated_at": 업데이트 시간
}
Request 파라미터
| 파라미터 명칭 | 필수 여부 | 데이터 유형 | 기술 | 초기값 | 값의 범위 |
|---|---|---|---|---|---|
| order_nos | 예 | json | 주문번 | '["2018091315164516313901209422","2018091315164516313901209644"]' |
Reponse 파라미터
{
"code": 0,
"msg": "successful",
"data": null
}
Request 파라미터
| 파라미터 명칭 | 필수 여부 | 데이터 유형 | 기술 | 초기값 | 값의 범위 |
|---|---|---|---|---|---|
| order_nos | 예 | array | 주문번호배열 |
Reponse 파라미터
{
"code": 0,
"msg": "successful"
}
Request 파라미터
| 파라미터 명칭 | 필수 여부 | 데이터 유형 | 기술 | 초기값 | 값의 범위 |
|---|---|---|---|---|---|
| order_no | 예 | string | 주문번호 |
Reponse 파라미터
{
"code": 0,
"msg": "successful",
"data": {
"id": 1,
"status": 1,
"order_no": "2018090313134038386500017289",
"type": "1",
"market_type": "1",
"account_id": 6,
"org_id": 12,
"user_id": 1,
"market": "BTC",
"market_as": "BTC",
"token": "ETH",
"token_as": "ETH",
"price": "0.05",
"amount": "1",
"volume": "0.05",
"matched_amount": "0",
"matched_volume": "0",
"avg_price":"0",
"created_at": "2018-09-03 13:13:40",
"updated_at": "2018-09-03 13:13:40"
"unmatched_amount":"0"
}
}
data설명
"data": {
"id": 주문id,
"status": 상태 취소됨1생성됨 2매칭중 3완료,
"order_no": 주문번호,
"type": 유형 1매수 2매도,
"market_type": 마켓유형 지정가 거래1,
"account_id_from": 매수자 회원id',
"account_id_to": 매도자 회원id',
"org_id": 기관id,
"user_id": 회원id,
"market": 마켓,
"market_as": 마켓심벌,
"token": 코인,
"token_as": 코인심벌,
"price": 가격,
"amount": 기준통화 코인 금액,
"volume": 상대통화 코인 금액,
"matched_amount": 매칭된 기준통화 코인 금액,
"matched_volume": 매칭된 상대통화 코인 금액,
"unmatched_amount": 매칭 대기중인 기준통화 코인 금액,
"avg_price": 매칭된 부분 평균단가,
"created_at": 생성시간,
"updated_at": 업데이트 시간
}
Request 파라미터
| 파라미터 명칭 | 필수 여부 | 데이터 유형 | 기술 | 초기값 | 값의 범위 |
|---|---|---|---|---|---|
| page | 예 | string | 페이지 | 1~10000 | |
| size | 예 | string | 페이지당 반영 수량 | 1~100 | |
| type | 아니요 | string | 유형 | 1매수 2매도 | |
| market | 아니요 | string | 마켓 | ||
| token | 아니요 | string | 코인 | ||
| status | 아니요 | array | 상태,형식:[0,1,2,3] | 0취소 1 생성됨 2 매칭중 3 완료 | |
| begin_time | 아니요 | string | 시작시간 , 예2018-08-20 00:00:00; 반드시end_time과 같이 사용하십시오 | ||
| end_time | 아니요 | string | 종료시간 , 예 2018-08-21 23:59:59; 반드시start_time 과 같이 사용하십시오 |
Reponse 파라미터
{
"code": 0,
"msg": "successful",
"data": {
"count": 10,
"data": [
{
"id": 1,
"status": 1,
"type": 1,
"market_type": 1,
"order_no": "2018090313134038386500017289",
"account_id": 6,
"user_id": 1,
"org_id": 12,
"market": "BTC",
"market_as": "BTC",
"token": "ETH",
"token_as": "ETH",
"price": "0.05",
"amount": "1",
"volume": "0.05",
"matched_amount": "0",
"matched_volume": "0",
"avg_price":"0",
"created_at": "2018-09-03 13:13:40",
"updated_at": "2018-09-03 13:13:40",
"unmatched_amount": "1"
},
{
"id": 2,
"status": 1,
"type": 1,
"market_type": 1,
"order_no": "2018090313134038386500017299",
"account_id": 6,
"user_id": 1,
"org_id": 12,
"market": "BTC",
"market_as": "BTC",
"token": "ETH",
"token_as": "ETH",
"price": "0.05",
"amount": "1",
"volume": "0.05",
"matched_amount": "0",
"matched_volume": "0",
"avg_price":"0",
"created_at": "2018-09-03 13:13:42",
"updated_at": "2018-09-03 13:13:42",
"unmatched_amount": "1"
}
]
}
}
data설명
"data": {
"id": 주문id,
"status": 상태 0취소됨 1생성됨 2매칭중 3완료,
"order_no": 주문번호,
"type": 유형 1매수 2매도,
"market_type": 마켓유형 지정가 거래1,
"account_id_from": 매수자 회원id',
"account_id_to": 매도자 회원id',
"org_id": 기관id,
"user_id": 회원id,
"market": 마켓,
"market_as": 마켓심벌,
"token": 코인,
"token_as": 코인심벌,
"price": 가격,
"amount": 기준통화 코인 금액,
"volume": 상대통화 코인 금액,
"matched_amount": 매칭된 기준통화 코인 금액,
"matched_volume": 매칭된 상대통화 코인 금액,
"unmatched_amount": 매칭 대기중인 기준통화 코인 금액,
"avg_price": 매칭된 부분 평균단가,
"created_at": 생성시간,
"updated_at": 업데이트 시간
}
Request 파라미터
| 파라미터 명칭 | 필수 여부 | 데이터 유형 | 기술 | 초기값 | 값의 범위 |
|---|---|---|---|---|---|
| page | 예 | string | 페이지 | 1~10000 | |
| size | 예 | string | 페이지당 반영 수량 | 1~100 | |
| status | 아니요 | array | 상태(1매칭대기중 2매칭중) | [1,2] |
Reponse 파라미터
{
"code": 0,
"msg": "successful",
"data": {
"count": 10,
"data": [
{
"id": 1,
"status": 1,
"type": 1,
"market_type": 1,
"order_no": "2018090313134038386500017289",
"account_id": 6,
"user_id": 1,
"org_id": 12,
"market": "BTC",
"market_as": "BTC",
"token": "ETH",
"token_as": "ETH",
"price": "0.05",
"amount": "1",
"volume": "0.05",
"matched_amount": "0",
"matched_volume": "0",
"avg_price":"0",
"created_at": "2018-09-03 13:13:40",
"updated_at": "2018-09-03 13:13:40",
"unmatched_amount": "1"
},
{
"id": 2,
"status": 1,
"type": 1,
"market_type": 1,
"order_no": "2018090313134038386500017299",
"account_id": 6,
"user_id": 1,
"org_id": 12,
"market": "BTC",
"market_as": "BTC",
"token": "ETH",
"token_as": "ETH",
"price": "0.05",
"amount": "1",
"volume": "0.05",
"matched_amount": "0",
"matched_volume": "0",
"avg_price":"0",
"created_at": "2018-09-03 13:13:42",
"updated_at": "2018-09-03 13:13:42",
"unmatched_amount": "1"
}
]
}
}
data설명
"data": {
"id": 주문id,
"status": 상태 0취소됨 1생성됨 2매칭중 3완료,
"order_no": 주문번호,
"type": 유형 1매수 2매도,
"market_type": 마켓유형 지정가 거래1,
"account_id_from": 매수자 회원id',
"account_id_to": 매도자 회원id',
"org_id": 기관id,
"user_id": 회원id,
"market": 마켓,
"market_as": 마켓심벌,
"token": 코인,
"token_as": 코인심벌,
"price": 가격,
"amount": 기준통화 코인 금액,
"volume": 상대통화 코인 금액,
"matched_amount": 매칭된 기준통화 코인 금액,
"matched_volume": 매칭된 상대통화 코인 금액,
"unmatched_amount": 매칭 대기중인 기준통화 코인 금액,
"avg_price": 매칭된 부분 평균단가,
"created_at": 생성시간,
"updated_at": 업데이트 시간
"id": 주문id,
"status": 상태 0취소됨 1생성됨 2매칭중 3완료,
"order_no": 주문번호,
"type": 유형 1매수 2매도,
"market_type": 마켓유형 지정가 거래1,
"account_id_from": 매수자 회원id',
"account_id_to": 매도자 회원id',
"org_id": 기관id,
"user_id": 회원id,
"market": 마켓,
"market_as": 마켓심벌,
"token": 코인,
"token_as": 코인심벌,
"price": 가격,
"amount": 기준통화 코인 금액
"volume": 상대통화 코인 금액
"matched_amount": 매칭된 기준통화 코인 금액,
"matched_volume": 매칭된 상대통화 코인 금액,
"unmatched_amount": 매칭 대기중인 기준통화 코인 금액,
"avg_price":매칭된 부분 평균단가,
"created_at": 생성시간,
"updated_at": 업데이트 시간
}
Request 파라미터
| 파라미터 명칭 | 필수 여부 | 데이터 유형 | 기술 | 초기값 | 값의 범위 |
|---|---|---|---|---|---|
| page | 예 | string | 페이지 | 1~10000 | |
| size | 예 | string | 페이지당 반영 수량 | 1~100 | |
| type | 아니요 | string | 유형 | 1 매수 2매도 | |
| market | 아니요 | string | 마켓 | ||
| token | 아니요 | string | 코인 | ||
| begin_time | 아니요 | string | 시작 시간 , 예2018-08-20 17:59:33; 반드시end_time과 같이 사용하십시오 | ||
| end_time | 아니요 | string | 종료시간 , 예 2018-08-31 17:59:33; 반드시start_time 과 같이 사용하십시오 |
Reponse 파라미터
{
"code": 0,
"msg": "successful",
"data": {
"count": 10,
"data": [
{
"id": 1,
"trade_no": "2243534656575453445453343423",
"buy_order_id": 1,
"buy_order_no": "2243534656575453445453343465",
"sell_order_id": 1,
"sell_order_no": "12135647586799657463241324",
"dominance": 1,
"buyer_user_id": 1,
"seller_user_id": 2,
"org_id": 12,
"trade_strategy": 1,
"market": "BTC",
"market_as": "BTC",
"token": "ETH",
"token_as": "ETH",
"price": "10.00000000",
"amount": "1.00000000",
"volume": "1.00000000",
"created_at": "1970-01-01 08:00:01",
"updated_at": "2018-08-29 10:19:12"
},
{
"id": 2,
"trade_no": "2243534656575453445453345523",
"buy_order_id": 1,
"buy_order_no": "2243534656575453445453343472",
"sell_order_id": 1,
"sell_order_no": "12135647586799657463241367",
"dominance": 1,
"buyer_user_id": 1,
"seller_user_id": 2,
"org_id": 12,
"trade_strategy": 1,
"market": "BTC",
"market_as": "BTC",
"token": "ETH",
"token_as": "ETH",
"price": "10.00000000",
"amount": "1.00000000",
"volume": "1.00000000",
"created_at": "1970-01-01 08:00:01",
"updated_at": "2018-08-29 10:19:12"
}
]
}
}
data설명
"data": {
"id": 1,
"trade_no": 체결 주문번호,
"buy_order_id": 매수 주문id,
"buy_order_no": 매수 주문번호,
"sell_order_id": 매도 주문id,
"sell_order_no": 매도 주문번호,
"dominance": Taker,
"buyer_user_id": 매수자 회원id,
"seller_user_id": 매도자 회원id,
"org_id": 기관id,
"trade_strategy": 거래유형1지정가 거래,
"market": 마켓,
"market_as": 마켓심벌,
"token": 코인,
"token_as": 코인심벌,
"price": 가격,
"amount": 기준통화코인 금액,
"volume": 상대통화코인 금액,
"created_at": 생성시간,
"updated_at": 업데이트 시간
}
Request 파라미터
| 파라미터 명칭 | 필수 여부 | 데이터 유형 | 기술 | 초기값 | 값의 범위 |
|---|---|---|---|---|---|
| page | 예 | string | 페이지 | 1~10000 | |
| size | 예 | string | 페이지당 반영 수량 | 1~100 | |
| market | 아니요 | string | 마켓 | ||
| token | 아니요 | string | 코인 |
Reponse 파라미터
{
"code": 0,
"msg": "successful",
"data": {
"count": 10,
"data": [
{
"id": 1,
"trade_no": "2243534656575453445453343423",
"buy_order_id": 1,
"buy_order_no": "2243534656575453445453343465",
"sell_order_id": 1,
"sell_order_no": "12135647586799657463241324",
"dominance": 1,
"buyer_user_id": 1,
"seller_user_id": 2,
"org_id": 12,
"trade_strategy": 1,
"market": "ETH",
"market_as": "ETH",
"token": "BTC",
"token_as": "BTC",
"price": "10.00000000",
"amount": "1.00000000",
"volume": "1.00000000",
"created_at": "1970-01-01 08:00:01",
"updated_at": "2018-08-29 10:19:12"
},
{
"id": 2,
"trade_no": "2243534656575453445453345523",
"buy_order_id": 1,
"buy_order_no": "2243534656575453445453343472",
"sell_order_id": 1,
"sell_order_no": "12135647586799657463241367",
"dominance": 1,
"buyer_user_id": 1,
"seller_user_id": 2,
"org_id": 12,
"trade_strategy": 1,
"market": "ETH",
"market_as": "ETH",
"token": "BTC",
"token_as": "BTC",
"price": "10.00000000",
"amount": "1.00000000",
"volume": "1.00000000",
"created_at": "1970-01-01 08:00:01",
"updated_at": "2018-08-29 10:19:12"
}
]
}
}
data설명
"data": {
"id": 1,
"trade_no": 체결 주문번호,
"buy_order_id": 매수 주문id,
"buy_order_no": 매수 주문번호,
"sell_order_id": 매도 주문id,
"sell_order_no": 매도 주문번호,
"dominance": Taker,
"buyer_user_id": 매수자 회원id,
"seller_user_id": 매도자 회원id,
"org_id": 기관id,
"trade_strategy": 거래유형1지정가 거래,
"market": 마켓,
"market_as": 마켓심벌,
"token": 코인,
"token_as": 코인심벌,
"price": 가격,
"amount": 기준통화코인 금액,
"volume": 상대통화코인 금액,
"created_at": 생성시간,
"updated_at": 업데이트 시간
}
Request 파라미터
| 파라미터 명칭 | 필수 여부 | 데이터 유형 | 기술 | 초기값 | 값의 범위 |
|---|---|---|---|---|---|
| page | 예 | string | 페이지 | 1~10000 | |
| size | 예 | string | 페이지당 반영 수량 | 1~100 | |
| token | 예 | string | 코인, 비어도 됩니다 | ||
| begin_time | 예 | string | 시작 시간, 예 2018-08-20 17:59:33, 비어도 됩니다 ; 반드시end_time과 같이 사용하십시오 | ||
| end_time | 예 | string | 종료시간 , 예 2018-08-31 17:59:33, 비어도 됩니다 ; 반드시start_time 과 같이 사용하십시오 |
Reponse 파라미터
{
"code": 0,
"msg": "ok",
"data": {
"data": [
{
"id": 1,
"user_id": 1,
"org_id": 12,
"account_id": 1,
"token": "BTC",
"token_as": "BTC",
"amount": "1",
"blockchain_tx_id": "ardtyuijuytredsasdfg",
"deposit_no": "123456789765432133453",
"address": "aSDFGUIYTREWAaertyrewasSDFGHJK",
"confirm_count": 0,
"status": 1,
"created_at": "2018-09-03 17:23:20",
"updated_at": "2018-09-03 17:24:24"
},
{
"id": 2,
"user_id": 1,
"org_id": 12,
"account_id": 1,
"token": "BTC",
"token_as": "BTC",
"amount": "2",
"blockchain_tx_id": "Awedtyuiuyfgdsa",
"deposit_no": "345678985432132446577",
"address": "asertyuiouytredasdrtyuiuytfdssasdfgh",
"confirm_count": 12,
"status": 5,
"created_at": "2018-09-03 17:24:18",
"updated_at": "2018-09-03 17:24:18"
}
],
"count": 2
}
data설명:
"data": {
"id": 입금주문id,
"user_id": 회원,
"org_id": 기관id,
"account_id": 계정id,
"token": 코인,
"token_as": 코인심벌,
"amount": 수량,
"blockchain_tx_id": txid,
"deposit_no": 입금주문번호,
"address": 입금주소,
"confirm_count": 확인수,
"status": 상태 1 생성됨 5 완료,
"created_at": 생성시간,
"updated_at": 업데이트 시간
}
Request 파라미터
| 파라미터 명칭 | 필수 여부 | 데이터 유형 | 기술 | 초기값 | 값의 범위 |
|---|---|---|---|---|---|
| page | 예 | string | 페이지 | 1~10000 | |
| size | 예 | string | 페이지당 반영 수량 | 1~100 | |
| token | 예 | string | 코인,비어도 됩니다 | ||
| begin_time | 예 | string | 시작 시간 , 예 2018-08-20 17:59:33, 비어도 됩니다 ; 반드시end_time과 같이 사용하십시오 | ||
| end_time | 예 | string | 종료시간 , 예 2018-08-31 17:59:33, 비어도 됩니다 ;반드시start_time 과 같이 사용하십시오 |
Reponse 파라미터
{
"code": 0,
"msg": "ok",
"data": {
"data": [
{
"id": 1,
"user_id": 1,
"org_id": 12,
"account_id": 6,
"fee_account_id": 3,
"token": "BTC",
"token_as": "BTC",
"fee_token": "BTC",
"protocol": 2,
"amount": "",
"apply_amount": "1",
"blockchain_tx_id": null,
"network_fee": "0.01",
"withdrawal_no": "2018090317160306293300011976",
"address_to": "1QT6UzFLZHtQKhWqUEXJgPWY1j5QevxfRk",
"address_from": "ertyuiytrewrtyui987654ewsdftyu876t5rdsf1s",
"fee_address": "ertyuiytrewrtyui987654ewsdftyu876t5rdsf1s",
"reason": null,
"confirm_count": 0,
"status": 1,
"created_at": "2018-09-03 17:16:03",
"updated_at": "2018-09-03 17:16:03"
}
],
"count": 1
}
data설명:
"data": {
"id": 출금id,
"user_id": 회원,
"org_id": 기관id,
"account_id": 계정id,
"fee_account_id": 수수료 계정id,
"token": 코인,
"token_as": 코인심벌 ,
"fee_token": 네트워크 수수료 코인,
"protocol": 코인마크,
"amount": 실제 입금된 수량,
"apply_amount": 요청수량,
"blockchain_tx_id": txid,
"network_fee": 네트워크수수료,
"withdrawal_no": 출금 주문번호,
"address_to": 입금주소,
"address_from": 출금주소,
"fee_address": 수수료주소,
"reason": 심사원인,
"confirm_count": 확인 수,
"status": 상태 0미심사 1심사완료 2지갑 출금요청 확인 3네트워크 수수료발생 4첫블럭생성 5 완료 6심사미통과 7취소,
"created_at": 생성시간,
"updated_at": 업데이트 시간
}