Class IndexerGrpcSpotTransformer
Hierarchy
- IndexerGrpcSpotTransformer
Methods
Static grpcMarketToMarket
Static grpcMarketsToMarkets
Static grpcOrderHistoryListToOrderHistoryList
Static grpcOrderHistoryToOrderHistory
Static grpcOrderbookToOrderbook
Static grpcOrderbookV2ToOrderbookV2
Static grpcOrdersToOrders
Static grpcPriceLevelToPriceLevel
Static grpcPriceLevelsToPriceLevels
Static grpcTokenMetaToTokenMeta
Static grpcTradesToTrades
Static marketResponseToMarket
- marketResponseToMarket(response: MarketResponse): SpotMarket
Static marketsResponseToMarkets
- marketsResponseToMarkets(response: MarketsResponse): SpotMarket[]
Parameters
response: MarketsResponse
Static orderHistoryResponseToOrderHistory
Parameters
response: OrdersHistoryResponse
Static orderbookResponseToOrderbook
- orderbookResponseToOrderbook(response: OrderbookResponse): Orderbook
Parameters
response: OrderbookResponse
Static orderbookV2ResponseToOrderbookV2
Parameters
response: OrderbookV2Response
Static orderbooksResponseToOrderbooks
- orderbooksResponseToOrderbooks(response: OrderbooksResponse): { marketId: string; orderbook: Orderbook }[]
Parameters
response: OrderbooksResponse
Returns { marketId: string; orderbook: Orderbook }[]
Static orderbooksV2ResponseToOrderbooksV2
- orderbooksV2ResponseToOrderbooksV2(response: OrderbooksV2Response): { marketId: string; orderbook: OrderbookWithSequence }[]
Static ordersResponseToOrders
Static subaccountTradesListResponseToTradesList
- subaccountTradesListResponseToTradesList(response: SubaccountTradesListResponse): SpotTrade[]
Parameters
response: SubaccountTradesListResponse
Static tradesResponseToTrades