tardis-dev / tardis-machine

Locally runnable server with built-in data caching, providing both tick-level historical and consolidated real-time cryptocurrency market data via HTTP and WebSocket APIs
https://docs.tardis.dev/api/tardis-machine
Mozilla Public License 2.0
235 stars 46 forks source link

FTX live data #7

Closed jzay closed 2 years ago

jzay commented 2 years ago

Hi, I'm unable to retrieve any live order book data from FTX using this stream option


            {
                "exchange": "ftx",
                "product_ids": ["BTC-PERP"],
                "dataTypes": data_types,
            }
thaaddeus commented 2 years ago

I think needs to say 'symbols' not productIds, see https://docs.tardis.dev/api/tardis-machine#websocket-ws-stream-normalized-options-options

jzay commented 2 years ago

@thaaddeus sorry that is what I had not sure how that got in there. It isn't throwing an error but nothing is being returned either


                {
                    "exchange": "ftx",
                    "symbols": ["BTCUSD"],
                    "dataTypes": data_types,
                }
thaaddeus commented 2 years ago

You need to use BTC/USD not BTCUSD, or one of the availableSymbols from https://api.tardis.dev/exchanges/v1/ftx