There are 7 different resources on the matching engine REST API:
- accounts
- pairs
- tokens
- trades
- orderbook
- orders
- ohlcv
Retrieve the account information for a certain Obyte address (mainly token balances)
Retrieve the token balance of a certain Obyte address
- {userAddress} is the Obyte address of a user/client wallet
- {asset} is the ID of an asset (base or quote)
Retrieve the pair information corresponding to a baseToken and a quoteToken where:
- {baseToken} is the ID of a base token
- {quoteToken} is the ID of a quote token
Retrieve all pairs currently registered on the exchange
Retrieve pair data corresponding to a baseToken and quoteToken where
- {baseToken} is the ID of a base token
- {quoteToken} is the ID of a quote token
This endpoints returns the Open, High, Low, Close, Volume and Change for the last 24 hours as well as the last price.
Retrieve all tokens currently registered on the exchange
Retrieve all base tokens currently registered on the exchange
Retrieve all quote tokens currently registered on the exchange
Retrieve token information for a token asset ID or symbol
- {assetOrSymbol} is an asset ID ("base" or 44-bytes long string) or symbol
Retrieve the orderbook (amount and pricepoint) corresponding to a a baseToken and a quoteToken where:
- {baseToken} is the ID of a base token
- {quoteToken} is the ID of a quote token
Retrieve the orderbook (full raw orders, including fields such as hashes, maker, taker addresses, signatures, etc.) corresponding to a baseToken and a quoteToken.
- {baseToken} is the ID of a base token
- {quoteToken} is the ID of a quote token
Retrieve the sorted list of trades for an Obyte address
- {address} is an Obyte address
Retrieve all trades corresponding to a baseToken and a quoteToken
- {baseToken} is the ID of a base token
- {quoteToken} is the ID of a quote token
Retrieve the sorted list of orders for an Obyte address
Retrieve the list of positions for an Obyte address. Positions are order that have been sent to the matching engine and that are waiting to be matched
- {address} is an Obyte address
Retrieve the list of filled order for an Obyte address.
- {address} is an Obyte address
GET /ohlcv?baseToken={baseToken}"eToken={quoteToken}&pairName={pairName}&unit={unit}&duration={duration}&from={from}&to={to}
Retrieve OHLCV data corresponding to a baseToken and a quoteToken.
- {baseToken} is the ID of a baseToken
- {quoteToken} is the ID of a quoteToken
- {pairName} is the pair name under the format {baseTokenSymbol}/{quoteTokenSymbol}(eg. "ZRX/WETH"). I believe this parameter is currently required but it's planned to be optional. The idea is for this parameter to be used for verifications purposes and the API to send back an error if it does not correspond to a baseToken/quoteToken parameters
- {duration} is the duration (in units, see param below) of each candlestick
- {units} is the unit used to represent the above duration: "minute", "hour", "day", "week", "month"
- {from} is the beginning timestamp from which ohlcv data has to be queried
- {to} is the ending timestamp until which ohlcv data has to be queried