Versions in this module Expand all Collapse all v1 v1.46.6 May 5, 2023 Changes in this version + type ExchangeClient interface + Close func() + GetAccountPortfolio func(ctx context.Context, accountAddress string) (portfolioExchangePB.AccountPortfolioResponse, error) + GetAuction func(ctx context.Context, round int64) (auctionPB.AuctionEndpointResponse, error) + GetAuctions func(ctx context.Context) (auctionPB.AuctionsResponse, error) + GetDerivativeFundingPayments func(ctx context.Context, req derivativeExchangePB.FundingPaymentsRequest) (derivativeExchangePB.FundingPaymentsResponse, error) + GetDerivativeFundingRates func(ctx context.Context, req derivativeExchangePB.FundingRatesRequest) (derivativeExchangePB.FundingRatesResponse, error) + GetDerivativeMarket func(ctx context.Context, marketId string) (derivativeExchangePB.MarketResponse, error) + GetDerivativeMarkets func(ctx context.Context, req derivativeExchangePB.MarketsRequest) (derivativeExchangePB.MarketsResponse, error) + GetDerivativeOrderbook func(ctx context.Context, marketId string) (derivativeExchangePB.OrderbookResponse, error) + GetDerivativeOrderbookV2 func(ctx context.Context, marketId string) (derivativeExchangePB.OrderbookV2Response, error) + GetDerivativeOrderbooks func(ctx context.Context, marketIds []string) (derivativeExchangePB.OrderbooksResponse, error) + GetDerivativeOrderbooksV2 func(ctx context.Context, marketIds []string) (derivativeExchangePB.OrderbooksV2Response, error) + GetDerivativeOrders func(ctx context.Context, req derivativeExchangePB.OrdersRequest) (derivativeExchangePB.OrdersResponse, error) + GetDerivativePositions func(ctx context.Context, req derivativeExchangePB.PositionsRequest) (derivativeExchangePB.PositionsResponse, error) + GetDerivativeTrades func(ctx context.Context, req derivativeExchangePB.TradesRequest) (derivativeExchangePB.TradesResponse, error) + GetInfo func(ctx context.Context, req metaPB.InfoRequest) (metaPB.InfoResponse, error) + GetInsuranceFunds func(ctx context.Context, req insurancePB.FundsRequest) (insurancePB.FundsResponse, error) + GetOracleList func(ctx context.Context) (oraclePB.OracleListResponse, error) + GetOrderStates func(ctx context.Context, req accountPB.OrderStatesRequest) (accountPB.OrderStatesResponse, error) + GetPortfolio func(ctx context.Context, accountAddress string) (accountPB.PortfolioResponse, error) + GetPrice func(ctx context.Context, baseSymbol string, quoteSymbol string, oracleType string, ...) (oraclePB.PriceResponse, error) + GetRedemptions func(ctx context.Context, req insurancePB.RedemptionsRequest) (insurancePB.RedemptionsResponse, error) + GetRewards func(ctx context.Context, req accountPB.RewardsRequest) (accountPB.RewardsResponse, error) + GetSpotMarket func(ctx context.Context, marketId string) (spotExchangePB.MarketResponse, error) + GetSpotMarkets func(ctx context.Context, req spotExchangePB.MarketsRequest) (spotExchangePB.MarketsResponse, error) + GetSpotOrderbook func(ctx context.Context, marketId string) (spotExchangePB.OrderbookResponse, error) + GetSpotOrderbookV2 func(ctx context.Context, marketId string) (spotExchangePB.OrderbookV2Response, error) + GetSpotOrderbooks func(ctx context.Context, marketIds []string) (spotExchangePB.OrderbooksResponse, error) + GetSpotOrderbooksV2 func(ctx context.Context, marketIds []string) (spotExchangePB.OrderbooksV2Response, error) + GetSpotOrders func(ctx context.Context, req spotExchangePB.OrdersRequest) (spotExchangePB.OrdersResponse, error) + GetSpotTrades func(ctx context.Context, req spotExchangePB.TradesRequest) (spotExchangePB.TradesResponse, error) + GetSubaccountBalance func(ctx context.Context, subaccountId string, denom string) (accountPB.SubaccountBalanceEndpointResponse, error) + GetSubaccountBalancesList func(ctx context.Context, subaccountId string) (accountPB.SubaccountBalancesListResponse, error) + GetSubaccountDerivativeOrdersList func(ctx context.Context, req derivativeExchangePB.SubaccountOrdersListRequest) (derivativeExchangePB.SubaccountOrdersListResponse, error) + GetSubaccountDerivativeTradesList func(ctx context.Context, req derivativeExchangePB.SubaccountTradesListRequest) (derivativeExchangePB.SubaccountTradesListResponse, error) + GetSubaccountHistory func(ctx context.Context, req accountPB.SubaccountHistoryRequest) (accountPB.SubaccountHistoryResponse, error) + GetSubaccountOrderSummary func(ctx context.Context, req accountPB.SubaccountOrderSummaryRequest) (accountPB.SubaccountOrderSummaryResponse, error) + GetSubaccountSpotOrdersList func(ctx context.Context, req spotExchangePB.SubaccountOrdersListRequest) (spotExchangePB.SubaccountOrdersListResponse, error) + GetSubaccountSpotTradesList func(ctx context.Context, req spotExchangePB.SubaccountTradesListRequest) (spotExchangePB.SubaccountTradesListResponse, error) + GetSubaccountsList func(ctx context.Context, accountAddress string) (accountPB.SubaccountsListResponse, error) + GetVersion func(ctx context.Context, req metaPB.VersionRequest) (metaPB.VersionResponse, error) + Ping func(ctx context.Context, req metaPB.PingRequest) (metaPB.PingResponse, error) + QueryClient func() *grpc.ClientConn + StreamAccountPortfolio func(ctx context.Context, accountAddress string, subaccountId, balanceType string) (portfolioExchangePB.InjectivePortfolioRPC_StreamAccountPortfolioClient, error) + StreamBids func(ctx context.Context) (auctionPB.InjectiveAuctionRPC_StreamBidsClient, error) + StreamDerivativeMarket func(ctx context.Context, marketIds []string) (derivativeExchangePB.InjectiveDerivativeExchangeRPC_StreamMarketClient, error) + StreamDerivativeOrderbook func(ctx context.Context, marketIds []string) (derivativeExchangePB.InjectiveDerivativeExchangeRPC_StreamOrderbookClient, ...) + StreamDerivativeOrderbookUpdate func(ctx context.Context, marketIds []string) (...) + StreamDerivativeOrderbookV2 func(ctx context.Context, marketIds []string) (derivativeExchangePB.InjectiveDerivativeExchangeRPC_StreamOrderbookV2Client, ...) + StreamDerivativeOrders func(ctx context.Context, req derivativeExchangePB.StreamOrdersRequest) (derivativeExchangePB.InjectiveDerivativeExchangeRPC_StreamOrdersClient, error) + StreamDerivativePositions func(ctx context.Context, req derivativeExchangePB.StreamPositionsRequest) (derivativeExchangePB.InjectiveDerivativeExchangeRPC_StreamPositionsClient, ...) + StreamDerivativeTrades func(ctx context.Context, req derivativeExchangePB.StreamTradesRequest) (derivativeExchangePB.InjectiveDerivativeExchangeRPC_StreamTradesClient, error) + StreamKeepalive func(ctx context.Context) (metaPB.InjectiveMetaRPC_StreamKeepaliveClient, error) + StreamPrices func(ctx context.Context, baseSymbol string, quoteSymbol string, oracleType string) (oraclePB.InjectiveOracleRPC_StreamPricesClient, error) + StreamSpotMarket func(ctx context.Context, marketIds []string) (spotExchangePB.InjectiveSpotExchangeRPC_StreamMarketsClient, error) + StreamSpotOrderbook func(ctx context.Context, marketIds []string) (spotExchangePB.InjectiveSpotExchangeRPC_StreamOrderbookClient, error) + StreamSpotOrderbookUpdate func(ctx context.Context, marketIds []string) (spotExchangePB.InjectiveSpotExchangeRPC_StreamOrderbookUpdateClient, error) + StreamSpotOrderbookV2 func(ctx context.Context, marketIds []string) (spotExchangePB.InjectiveSpotExchangeRPC_StreamOrderbookV2Client, error) + StreamSpotOrders func(ctx context.Context, req spotExchangePB.StreamOrdersRequest) (spotExchangePB.InjectiveSpotExchangeRPC_StreamOrdersClient, error) + StreamSpotTrades func(ctx context.Context, req spotExchangePB.StreamTradesRequest) (spotExchangePB.InjectiveSpotExchangeRPC_StreamTradesClient, error) + StreamSubaccountBalance func(ctx context.Context, subaccountId string) (accountPB.InjectiveAccountsRPC_StreamSubaccountBalanceClient, error) + func NewExchangeClient(protoAddr string, options ...common.ClientOption) (ExchangeClient, error)