Open kuczmama opened 5 years ago
Exchanges to Add
Fields | Type | Description |
---|---|---|
CHANNEL_ID | integer | Channel ID |
BID | float | Price of last highest bid |
BID_SIZE | float | Size of the last highest bid |
ASK | float | Price of last lowest ask |
ASK_SIZE | float | Size of the last lowest ask |
DAILY_CHANGE | float | Amount that the last price has changed since yesterday |
DAILY_CHANGE_PERC | float | Amount that the price has changed expressed in percentage terms |
LAST_PRICE | float | Price of the last trade. |
VOLUME | float | Daily volume |
HIGH | float | Daily high |
LOW | float | Daily low |
const wss = new WebSocket('wss://api.bitfinex.com/ws/')
wss.send(JSON.stringify({
"event": "subscribe",
"channel": "book",
"symbol": "fUSD",
"prec": "P0",
"freq": "F0",
"len": 25
}))
[ ] BitMex : https://www.bitmex.com/app/apiOverview
ws = new WebSocket('wss://www.bitmex.com/realtime')
ws.send(JSON.stringify({"op": "subscribe", "args": "trade"}))
[ ] BitStamp: https://www.bitstamp.net/api/
https://github.com/dursk/bitcoin-price-api