sgcWebSockets API Bitstamp components
From sgcWebSockets 4.1.8 BinanceWebSocket API is supported.
Binance is an international multi-language cryptocurrency exchange.
Methods
SubscribeTicker: get live trades from currency selected (if no currency, by default is BTC/USD). JSON data:
Streams (JSON) | |
id | Trade unique ID. |
amount | Trade amount. |
price | Trade price. |
type | Trade type (0 - buy; 1 - sell). |
timestamp | Trade timestamp. |
buy_order_id | Trade buy order id. |
sell_order_id | Trade sell order id. |
SubscribeOrderBook: get order book from currency selected (if no currency, by default is BTC/USD). JSON data:
Streams (JSON) | |
bids | List of tops 100 bids. |
asks | List of top 100 asks. |
timestamp | Order book timestamp. |
SubscribeFullOrderBook: get full order book from currency selected (if no currency, by default is BTC/USD). JSON data:
bids | List of changed bids since last broadcast. |
asks | List of asks since last broadcast. |
SubscribeOrders: get live orders from currency selected (if no currency, by default is BTC/USD). JSON data:
id | Order ID. |
amount | Order amount. |
price | Order price. |
order_type | Order type (0 - buy; 1 - sell). |
datetime | Order datetime. |