Class IndexerSpotStreamTransformer
Hierarchy
- IndexerSpotStreamTransformer
Methods
Static orderHistoryStreamCallback
Static orderbookStreamCallback
- orderbookStreamCallback(response: StreamOrderbookResponse): { marketId: string; operation: StreamOperation; orderbook: undefined | Orderbook; timestamp: string }
Parameters
response: StreamOrderbookResponse
Returns { marketId: string; operation: StreamOperation; orderbook: undefined | Orderbook; timestamp: string }
marketId: string
orderbook: undefined | Orderbook
timestamp: string
Static orderbookUpdateStreamCallback
- orderbookUpdateStreamCallback(response: StreamOrderbookUpdateResponse): { marketId: string; operation: StreamOperation; orderbook: undefined | OrderbookWithSequence; timestamp: string }
Parameters
response: StreamOrderbookUpdateResponse
Returns { marketId: string; operation: StreamOperation; orderbook: undefined | OrderbookWithSequence; timestamp: string }
marketId: string
timestamp: string
Static orderbookV2StreamCallback
Parameters
response: StreamOrderbookV2Response
Returns { marketId: string; operation: StreamOperation; orderbook: undefined | OrderbookWithSequence; timestamp: string }
marketId: string
timestamp: string
Static ordersStreamCallback
Static tradesStreamCallback
- tradesStreamCallback(response: StreamTradesResponse): { operation: StreamOperation; timestamp: string; trade: undefined | SpotTrade }
Parameters
response: StreamTradesResponse
Returns { operation: StreamOperation; timestamp: string; trade: undefined | SpotTrade }
timestamp: string
trade: undefined | SpotTrade