본문 바로가기
트레이딩/암호화폐

암호화폐. 바이비트. API. 현물. 주문 송신. Place Active Order

by i.got.it 2022. 4. 15.

 

Place Active Order

http POST 

 

주소 : /spot/v1/order

베이스 주소 : https://igotit.tistory.com/2674 의 현물 서버 주소 들. 

 

요청 파라메타

 

지정가 주문(LIMIT, LIMIT_MAKER ) 시 price 필수 기록. 시장가 주문(MARKET) 시 price 기록 여부 무관하게 주문 수량 만큼 체결.  

Parameter Required Type Comment
symbol true string Name of the trading pair
qty true number Order quantity (for market orders: when side is Buy, this is in the quote currency. Otherwise, qty is in the base currency. For example, on BTCUSDT a Buy order is in USDT, otherwise it's in BTC. For limit orders, the qty is always in the base currency.)
side true string Order direction
type true string Order type
timeInForce false string Time in force
price false number Order price. When the type field is MARKET, the price field is optional. When the type field is LIMIT or LIMIT_MAKER, the price field is required
orderLinkId false string User-generated order ID

 

응답 

ret_code 가 0이면 주문의 거래소 접수는 성공. 0외의 값인 경우 주문 접수 실패이며 해당 사유는 ret_msg 에 있음. 


{
    "ret_code": 0,
    "ret_msg": "",
    "ext_code": null,
    "ext_info": null,
    "result": {
        "accountId": "1",
        "symbol": "ETHUSDT",
        "symbolName": "ETHUSDT",
        "orderLinkId": "162073788655749",
        "orderId": "889208273689997824",
        "transactTime": "1620737886573",
        "price": "20000",
        "origQty": "10",
        "executedQty": "0",
        "status": "NEW",
        "timeInForce": "GTC",
        "type": "LIMIT",
        "side": "BUY"
    }
}

 

응답 데이터 항목. 

 

Parameter Type Comment
orderId integer Order ID
orderLinkId string User-generated order ID
symbol string Name of the trading pair
transactTime int Order Creation Time
price float Last traded price
origQty float Order quantity
type string Order type
side string Order direction
status string Order status
timeInForce string Time in force
accountId long Account ID
symbolName string Symbol name
executedQty string Please ignore

 

 

 

 

 

 

연관

 

 

암호화폐. 바이비트. API. 현물. 웹소켓. 내주문체결 정보, executionReport

Subscribe 정보항목을 subscribe 하지 않아도 아래 3개 정보는 현물 웹소켓 secure 접속하면 기본 실시간 수신됨. outboundAccountInfo executionReport ticketInfo executionReport 데이터 형식 [ { "e": "execu..

igotit.tistory.com

 

 


첫 등록 : 2022.04.15

최종 수정 : 

단축 주소 : https://igotit.tistory.com/3614

 


 

댓글



 

비트코인




암호화폐       외환/나스닥/골드       암호화폐/외환/나스닥/골드 암호화폐/외환/나스닥/골드   암호화폐/외환/나스닥/골드
     
현물 |선물 인버스 |선물 USDT       전략매니저(카피트레이딩)     롤오버 이자 없는 스왑프리계좌
( 스왑프리 암호화폐도 거래 가능 )    
MT4, MT5 , cTrader 모두 지원     FTMO 계좌 매매운용. MT4,MT5