API Reference
What made this section unhelpful for you?
Base URL
Production:
http://api.polkadex.trade/graphql
Query
The Query type in GraphQL represents the entry point for retrieving data from the API. It defines the available read-only operations (queries) that clients can execute to fetch data.
Mutation
The Mutation type in GraphQL is used for modifying or creating data. It defines the operations (mutations) that allow clients to make changes to the data stored on the server, such as creating, updating, or deleting resources
Subscription
The Subscription type in GraphQL enables real-time communication between clients and the server. It defines a set of events or data streams that clients can subscribe to and receive updates whenever the subscribed events occur.
Objects
Objects in GraphQL represent complex data structures. They define the fields and their types that can be queried in a GraphQL API. Objects can have nested fields and relationships with other objects.
What made this section unhelpful for you?
Account
Account
Funding account address
Trading account address
Event ID for the marching engine
What made this section unhelpful for you?
AccountConnection
AccountConnection
Show child attributes
Pagination token
What made this section unhelpful for you?
Asset
Asset
Asset Ticker
Asset Name
Asset ID
What made this section unhelpful for you?
AssetsConnection
AssetsConnection
Show child attributes
Pagination token
What made this section unhelpful for you?
Balance
Balance
Asset ID
Free balance
Reserved balance
What made this section unhelpful for you?
BalanceConnection
BalanceConnection
Show child attributes
Pagination token
What made this section unhelpful for you?
CandleStick
CandleStick
Open price
Close price
High price
Low price
Base volume
Quote volume
Timestamp
What made this section unhelpful for you?
Channel
Channel
What made this section unhelpful for you?
KlinesConnection
KlinesConnection
Show child attributes
What made this section unhelpful for you?
Market
Market
Market ID
Maximum volume allowed for placing an order for curret market
Minimum volume allowed for placing an order for curret market
Price tick size
Quantity step size
Base asset precision
Quote asset precision
What made this section unhelpful for you?
MarketsConnection
MarketsConnection
Show child attributes
What made this section unhelpful for you?
Order
Order
Trading account address which is used for placing order
Client Order ID. It's an order id that clients like bots can add into the payload to track orders
Order ID
Timestamp
Market ID for which order belongs to
Order side i.e. Bid or Ask
Order type i.e. LIMIT or MARKET
Status of order i.e OPEN or CANCELLED or CLOSED
Price for which order is placed
Amount/Quantity for which order is placed
Quote order quantity
Average filled price
Filled quantity
Fee deducted for order
Event ID for the marching engine
Flag for checking if order is reverted or not
What made this section unhelpful for you?
Orderbook
Orderbook
Show child attributes
Pagination token
What made this section unhelpful for you?
OrdersConnection
OrdersConnection
Show child attributes
Pagination token
What made this section unhelpful for you?
PriceLevel
PriceLevel
Price
Quantity
Side i.e. Ask or Bid
Event ID for marching engine
What made this section unhelpful for you?
TickersConnection
TickersConnection
Show child attributes
Pagination token
What made this section unhelpful for you?
TickerStats
TickerStats
Open price
Close price
High price
Low price
Base volume
Quote volume
What made this section unhelpful for you?
Trade
Trade
Market Id for which trade is executed
Price
Quantity
Timestamp
Event ID for marching engine
Taker ID
Maker ID
Trade ID
Flag for checking if trade is reverted or not
What made this section unhelpful for you?
TradesConnection
TradesConnection
Show child attributes
Pagination token
What made this section unhelpful for you?
Transaction
Transaction
Transaction type i.e DEPOSIT or WITHDRAW
Asset ID
Amount
Fee deducted for transaction
Transcation status
Timestamp
Event ID for marching engine
Snapshot ID
Flag for checking if transaction is reverted or not
What made this section unhelpful for you?
TransactionsConnection
TransactionsConnection
Show child attributes
Pagination token
What made this section unhelpful for you?
UserActionInput
UserActionInput
Payload string
What made this section unhelpful for you?
UserTrade
UserTrade
Market ID on which trade is executed
Price
Quantity/Amount
Side i.e. Ask or Bid
Timestamp
Event ID for marching engine
Trade ID
Taker ID
Maker ID
Flag for checking if trade is reverted or not
What made this section unhelpful for you?
UserTradesConnection
UserTradesConnection
Show child attributes
Pagination token
What made this section unhelpful for you?
Scalars
Scalars: Scalars in GraphQL represent primitive data types, such as String, Int, Boolean, Float, etc. They are used to define the types of individual fields in the GraphQL schema.
Directives
Directives in GraphQL provide a way to control the execution behavior of queries and mutations. They allow you to modify the result, change the execution order, skip or include fields conditionally, and apply custom logic to the resolution process.
What made this section unhelpful for you?
Enums
Enums in GraphQL define a set of possible values for a field. They represent a discrete set of options or states that a field can have. Enums help ensure type safety and provide a clear list of valid values for a field.
Unions
Unions in GraphQL allow you to combine multiple object types into a single type. They represent a result that can be one of several object types. Unions are useful when a field can return different types of objects, and you want to specify all the possible types in the schema.