ApeX Pro . API . 웹소켓 . 실시간 시세 수신
요청구문 형식 예
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
'트레이딩 > 암호화폐' 카테고리의 다른 글
| 암호화폐 매매 정보 정리. (22) | 2024.01.11 |
|---|---|
| bybit . UTA ( 통합 거래 계좌 ) . 전종목 포지션 헤징 가능. (0) | 2023.11.04 |
| ApeX Pro . API . 서버 주소 정리 (0) | 2023.11.04 |
| ApeX Pro . bybit 의 탈중앙 거래 플랫폼 (0) | 2023.11.04 |
| Bybit Wallet . 크롬 브라우저에 암호화폐 지갑 설치 (0) | 2023.11.04 |

댓글