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

ApeX Pro . API . 웹소켓 . 실시간 시세 수신

by i.got.it 2023. 11. 4.

 

 

 

 

 

요청구문 형식 예 

ws.send('{"op":"subscribe","args":["recentlyTrade.H.BTCUSDC"]}');

 

요청 항목 

 

Parameter Type Limit Comment
» op string true Subscribe
» args string true Recently trade
» frequency string true H means High frequency, M means middle frequency
» symbol string true Symbol

 

 

수신데이터 형식 예 

{
    "topic":"recentlyTrade.H.BTCUSDC",
    "type":"snapshot",
    "data":[
        {
            "T":1647502440973,
            "s":"BTCPERP",
            "S":"Buy",
            "v":"1.000",
            "p":"43513.00",
            "L":"PlusTick",
            "i":"a3afbef7-d8de-5b87-a32f-d06f041a249d"
        }
    ],
    "cs":44132980,
    "ts":1661416027956272
}

 

수신 데이터 항목 

 

Parameter Type Comment
» topic string Same as request args
» type string Snapshot
» s string Symbol
» T int Timestamp
» S string Buy or Sell
» v string Volume
» p string Price
» L string Tick direction
» i string Order ID

 

 

 

실시간 시세 수신 구현 예 - 자바스크립트 

 

 

 

 

 

위 코드의 .js 와 .html 파일을 동일 폴더 (아래 그림처럼) 에 만들고, html 파일 을 더블 클릭하여 브라우저실행시키면 즉시 실시간 시세 수신 된다. 

 

 

 

실행결과 

- 웹브라우저에서 즉시 실행결과 확인가능. 

 

실행영상

 

 

 

 

연관

 

 

ApeX Pro . bybit 의 탈중앙 거래 플랫폼

ApeX Pro . - 바이비트 에서 만든 탈중앙 거래 플랫폼(DEX : Decentralized Exchanges ). - ApeX Pro 공식 홈 (한글지원 됨) : https://www.apex.exchange/ko-KR 현재 (2023년 11월 4일 ) ApeX Pro 거래 규모 : 전세계 DEX 중 5위 .

igotit.tistory.com

 

 

 


첫 등록 : 2023.11.04

최종 수정 : 

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


 

 

 

 

 

댓글



 

비트코인




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