[generated documentation]
FTXSocketClient > Streams
FTX streams
SubscribeToFTXPayUpdatesAsync
Subscribes to FTX-pay updates
var client = new FTXSocketClient();
var result = await client.Streams.SubscribeToFTXPayUpdatesAsync(/* parameters */);
Task<CallResult<UpdateSubscription>> SubscribeToFTXPayUpdatesAsync(Action<DataEvent<FTXUserTrade>> handler, CancellationToken ct = default);
| Parameter | Description |
|---|---|
| handler | The handler for the data |
| [Optional] ct | Cancellation token for closing this subscription |
SubscribeToGroupedOrderBookUpdatesAsync
https://docs.ftx.com/#grouped-orderbooks
Subscribes to order book updates for a symbol
var client = new FTXSocketClient();
var result = await client.Streams.SubscribeToGroupedOrderBookUpdatesAsync(/* parameters */);
Task<CallResult<UpdateSubscription>> SubscribeToGroupedOrderBookUpdatesAsync(string symbol, int grouping, Action<DataEvent<FTXStreamOrderBook>> handler, CancellationToken ct = default);
| Parameter | Description |
|---|---|
| symbol | Symbol for the order book |
| grouping | Grouping of the data |
| handler | The handler for the data |
| [Optional] ct | Cancellation token for closing this subscription |
SubscribeToOrderBookUpdatesAsync
https://docs.ftx.com/#orderbooks
Subscribes to order book updates for a symbol
var client = new FTXSocketClient();
var result = await client.Streams.SubscribeToOrderBookUpdatesAsync(/* parameters */);
Task<CallResult<UpdateSubscription>> SubscribeToOrderBookUpdatesAsync(string symbol, Action<DataEvent<FTXStreamOrderBook>> handler, CancellationToken ct = default);
| Parameter | Description |
|---|---|
| symbol | The symbol to subscribe to |
| handler | The handler for the data |
| [Optional] ct | Cancellation token for closing this subscription |
SubscribeToOrderUpdatesAsync
https://docs.ftx.com/#orders-2
Subscribes to order updates
var client = new FTXSocketClient();
var result = await client.Streams.SubscribeToOrderUpdatesAsync(/* parameters */);
Task<CallResult<UpdateSubscription>> SubscribeToOrderUpdatesAsync(Action<DataEvent<FTXOrder>> handler, CancellationToken ct = default);
| Parameter | Description |
|---|---|
| handler | The handler for the data |
| [Optional] ct | Cancellation token for closing this subscription |
SubscribeToSymbolsUpdatesAsync
https://docs.ftx.com/#markets-2
Subscribes to symbol updates
var client = new FTXSocketClient();
var result = await client.Streams.SubscribeToSymbolsUpdatesAsync(/* parameters */);
Task<CallResult<UpdateSubscription>> SubscribeToSymbolsUpdatesAsync(Action<DataEvent<Dictionary<string,FTXStreamSymbol>>> handler, CancellationToken ct = default);
| Parameter | Description |
|---|---|
| handler | The handler for the data |
| [Optional] ct | Cancellation token for closing this subscription |
SubscribeToTickerUpdatesAsync
Subscribes to ticker updates for a symbol
var client = new FTXSocketClient();
var result = await client.Streams.SubscribeToTickerUpdatesAsync(/* parameters */);
Task<CallResult<UpdateSubscription>> SubscribeToTickerUpdatesAsync(string symbol, Action<DataEvent<FTXStreamTicker>> handler, CancellationToken ct = default);
| Parameter | Description |
|---|---|
| symbol | The symbol to subscribe to |
| handler | The handler for the data |
| [Optional] ct | Cancellation token for closing this subscription |
SubscribeToTradeUpdatesAsync
Subscribes to trade updates for a symbol
var client = new FTXSocketClient();
var result = await client.Streams.SubscribeToTradeUpdatesAsync(/* parameters */);
Task<CallResult<UpdateSubscription>> SubscribeToTradeUpdatesAsync(string symbol, Action<DataEvent<IEnumerable<FTXTrade>>> handler, CancellationToken ct = default);
| Parameter | Description |
|---|---|
| symbol | The symbol to subscribe to |
| handler | The handler for the data |
| [Optional] ct | Cancellation token for closing this subscription |
SubscribeToUserTradeUpdatesAsync
Subscribes to trade updates
var client = new FTXSocketClient();
var result = await client.Streams.SubscribeToUserTradeUpdatesAsync(/* parameters */);
Task<CallResult<UpdateSubscription>> SubscribeToUserTradeUpdatesAsync(Action<DataEvent<FTXUserTrade>> handler, CancellationToken ct = default);
| Parameter | Description |
|---|---|
| handler | The handler for the data |
| [Optional] ct | Cancellation token for closing this subscription |