Search
Preparing search index...
The search index is not available
API Reference | Injective - Powering the future of decentralized finance.
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
API Reference | Injective - Powering the future of decentralized finance.
@injectivelabs/sdk-ts
IndexerGrpcSpotApi
Class IndexerGrpcSpotApi
Hierarchy
IndexerGrpcSpotApi
Index
Constructors
constructor
Properties
client
module
Methods
fetch
Market
fetch
Markets
fetch
Order
History
fetch
Orderbook
fetch
Orderbook
V2
fetch
Orderbooks
fetch
Orderbooks
V2
fetch
Orders
fetch
Subaccount
Orders
List
fetch
Subaccount
Trades
List
fetch
Trades
Constructors
constructor
new
Indexer
Grpc
Spot
Api
(
endpoint
:
string
)
:
IndexerGrpcSpotApi
Parameters
endpoint:
string
Returns
IndexerGrpcSpotApi
Properties
Protected
client
client
:
InjectiveSpotExchangeRPCClientImpl
Protected
module
module
:
string
= IndexerModule.Spot
Methods
fetch
Market
fetch
Market
(
marketId
:
string
)
:
internal
.
Promise
<
SpotMarket
>
Parameters
marketId:
string
Returns
internal
.
Promise
<
SpotMarket
>
fetch
Markets
fetch
Markets
(
params
?:
{
baseDenom
?:
string
;
marketStatus
?:
string
;
quoteDenom
?:
string
}
)
:
internal
.
Promise
<
SpotMarket
[]
>
Parameters
Optional
params:
{
baseDenom
?:
string
;
marketStatus
?:
string
;
quoteDenom
?:
string
}
Optional
base
Denom
?:
string
Optional
market
Status
?:
string
Optional
quote
Denom
?:
string
Returns
internal
.
Promise
<
SpotMarket
[]
>
fetch
Order
History
fetch
Order
History
(
params
?:
{
direction
?:
TradeDirection
;
executionTypes
?:
TradeExecutionType
[]
;
isConditional
?:
boolean
;
marketId
?:
string
;
marketIds
?:
string
[]
;
orderTypes
?:
OrderSide
[]
;
pagination
?:
PaginationOption
;
state
?:
OrderState
;
subaccountId
?:
string
}
)
:
internal
.
Promise
<
{
orderHistory
:
SpotOrderHistory
[]
;
pagination
:
ExchangePagination
}
>
Parameters
Optional
params:
{
direction
?:
TradeDirection
;
executionTypes
?:
TradeExecutionType
[]
;
isConditional
?:
boolean
;
marketId
?:
string
;
marketIds
?:
string
[]
;
orderTypes
?:
OrderSide
[]
;
pagination
?:
PaginationOption
;
state
?:
OrderState
;
subaccountId
?:
string
}
Optional
direction
?:
TradeDirection
Optional
execution
Types
?:
TradeExecutionType
[]
Optional
is
Conditional
?:
boolean
Optional
market
Id
?:
string
Optional
market
Ids
?:
string
[]
Optional
order
Types
?:
OrderSide
[]
Optional
pagination
?:
PaginationOption
Optional
state
?:
OrderState
Optional
subaccount
Id
?:
string
Returns
internal
.
Promise
<
{
orderHistory
:
SpotOrderHistory
[]
;
pagination
:
ExchangePagination
}
>
fetch
Orderbook
fetch
Orderbook
(
marketId
:
string
)
:
internal
.
Promise
<
Orderbook
>
deprecated
use fetchOrderbookV2
Parameters
marketId:
string
Returns
internal
.
Promise
<
Orderbook
>
fetch
Orderbook
V2
fetch
Orderbook
V2
(
marketId
:
string
)
:
internal
.
Promise
<
OrderbookWithSequence
>
Parameters
marketId:
string
Returns
internal
.
Promise
<
OrderbookWithSequence
>
fetch
Orderbooks
fetch
Orderbooks
(
marketIds
:
string
[]
)
:
internal
.
Promise
<
{
marketId
:
string
;
orderbook
:
Orderbook
}
[]
>
deprecated
use fetchOrderbooksV2
Parameters
marketIds:
string
[]
Returns
internal
.
Promise
<
{
marketId
:
string
;
orderbook
:
Orderbook
}
[]
>
fetch
Orderbooks
V2
fetch
Orderbooks
V2
(
marketIds
:
string
[]
)
:
internal
.
Promise
<
{
marketId
:
string
;
orderbook
:
OrderbookWithSequence
}
[]
>
Parameters
marketIds:
string
[]
Returns
internal
.
Promise
<
{
marketId
:
string
;
orderbook
:
OrderbookWithSequence
}
[]
>
fetch
Orders
fetch
Orders
(
params
?:
{
isConditional
?:
boolean
;
marketId
?:
string
;
marketIds
?:
string
[]
;
orderSide
?:
OrderSide
;
pagination
?:
PaginationOption
;
subaccountId
?:
string
}
)
:
internal
.
Promise
<
{
orders
:
SpotLimitOrder
[]
;
pagination
:
ExchangePagination
}
>
Parameters
Optional
params:
{
isConditional
?:
boolean
;
marketId
?:
string
;
marketIds
?:
string
[]
;
orderSide
?:
OrderSide
;
pagination
?:
PaginationOption
;
subaccountId
?:
string
}
Optional
is
Conditional
?:
boolean
Optional
market
Id
?:
string
Optional
market
Ids
?:
string
[]
Optional
order
Side
?:
OrderSide
Optional
pagination
?:
PaginationOption
Optional
subaccount
Id
?:
string
Returns
internal
.
Promise
<
{
orders
:
SpotLimitOrder
[]
;
pagination
:
ExchangePagination
}
>
fetch
Subaccount
Orders
List
fetch
Subaccount
Orders
List
(
params
?:
{
marketId
?:
string
;
pagination
?:
PaginationOption
;
subaccountId
?:
string
}
)
:
internal
.
Promise
<
{
orders
:
SpotLimitOrder
[]
;
pagination
:
ExchangePagination
}
>
Parameters
Optional
params:
{
marketId
?:
string
;
pagination
?:
PaginationOption
;
subaccountId
?:
string
}
Optional
market
Id
?:
string
Optional
pagination
?:
PaginationOption
Optional
subaccount
Id
?:
string
Returns
internal
.
Promise
<
{
orders
:
SpotLimitOrder
[]
;
pagination
:
ExchangePagination
}
>
fetch
Subaccount
Trades
List
fetch
Subaccount
Trades
List
(
params
?:
{
direction
?:
TradeDirection
;
executionType
?:
TradeExecutionType
;
marketId
?:
string
;
pagination
?:
PaginationOption
;
subaccountId
?:
string
}
)
:
internal
.
Promise
<
SpotTrade
[]
>
Parameters
Optional
params:
{
direction
?:
TradeDirection
;
executionType
?:
TradeExecutionType
;
marketId
?:
string
;
pagination
?:
PaginationOption
;
subaccountId
?:
string
}
Optional
direction
?:
TradeDirection
Optional
execution
Type
?:
TradeExecutionType
Optional
market
Id
?:
string
Optional
pagination
?:
PaginationOption
Optional
subaccount
Id
?:
string
Returns
internal
.
Promise
<
SpotTrade
[]
>
fetch
Trades
fetch
Trades
(
params
?:
{
direction
?:
TradeDirection
;
endTime
?:
number
;
executionSide
?:
TradeExecutionSide
;
executionTypes
?:
TradeExecutionType
[]
;
marketId
?:
string
;
marketIds
?:
string
[]
;
pagination
?:
PaginationOption
;
startTime
?:
number
;
subaccountId
?:
string
}
)
:
internal
.
Promise
<
{
pagination
:
ExchangePagination
;
trades
:
SpotTrade
[]
}
>
Parameters
Optional
params:
{
direction
?:
TradeDirection
;
endTime
?:
number
;
executionSide
?:
TradeExecutionSide
;
executionTypes
?:
TradeExecutionType
[]
;
marketId
?:
string
;
marketIds
?:
string
[]
;
pagination
?:
PaginationOption
;
startTime
?:
number
;
subaccountId
?:
string
}
Optional
direction
?:
TradeDirection
Optional
end
Time
?:
number
Optional
execution
Side
?:
TradeExecutionSide
Optional
execution
Types
?:
TradeExecutionType
[]
Optional
market
Id
?:
string
Optional
market
Ids
?:
string
[]
Optional
pagination
?:
PaginationOption
Optional
start
Time
?:
number
Optional
subaccount
Id
?:
string
Returns
internal
.
Promise
<
{
pagination
:
ExchangePagination
;
trades
:
SpotTrade
[]
}
>
Modules
@injectivelabs/sdk-
ts
internal
@injectivelabs/wallet-
ts
Indexer
Grpc
Spot
Api
constructor
client
module
fetch
Market
fetch
Markets
fetch
Order
History
fetch
Orderbook
fetch
Orderbook
V2
fetch
Orderbooks
fetch
Orderbooks
V2
fetch
Orders
fetch
Subaccount
Orders
List
fetch
Subaccount
Trades
List
fetch
Trades
Generated using
TypeDoc