HTTP API
All endpoints use HTTP GET requests with several URL parameters. All responses are encoded in JSON format.
Fetch market trades from recent to oldest.
Request parameters
Parameter
Required?
Description
a market contract address
max number of trades , default is 100
number of trades to skip, used for pagination
An array of trade objects.
Fetch user orders.
Request parameters
Parameter
Required?
Description
a market contract address
max number of orders , default is 100
number of orders to skip, used for pagination
An array of order objects.
Fetch the current state of the market order book.
Request parameters
Parameter
Required?
Description
a market contract address
one of market aggregation, if not set max, aggregation is used
max number of levels in asks and bids , default is 100
Object with fields:
number represents timestamp
object with fields"asks" and "bids"
Each field is a sorted array of order book level objects; asks are sorted in ascending order by price, and bids are sorted in descending order.
Get executed parts of user orders.
Request parameters
Parameter
Required?
Description
a market contract address
max number of objects in response, default is 100
number of fills to skip, used for pagination
An array of order fill objects descending by a timestamp field.
Get executed parts of user orders.
Request parameters
Parameter
Required?
Description
a market contract address
one of candle object resolution
a lower bound of candle time
an upper limit of candle time
An array of candle objects ascending by a time field.
Request parameters
Parameter
Required?
Description
a market contract address
An array of market objects.
Request parameters
Parameter
Required?
Description
An object with a key "balances" and a value that is an array of objects:
amount of tokens locked in orders
amount of the deposit in market contract
amount of token in user's wallet
Last updated