Order Book Info
The external match API also provides a set of support endpoints which return order book metadata.
Supported Tokens
The supported tokens endpoint returns a list of tokens which may be used in external matches.
let tokens = client.get_supported_tokens().await?;
See the example here.
Order Book Depth
The order book depth endpoint returns the bid and ask book depths for a given pair or all pairs.
const TOKEN = "0x123";
let depth = client.get_order_book_depth(TOKEN).await?;
let depth = client.get_order_book_depth_all_pairs().await?;
See the examples below:
Token Prices
The token prices endpoint returns the current price of the tokens on the Renegade book.
let token_prices = client.get_token_prices().await?;
See the example here.