Module dex

Module dex 

Source

Re-exportsยง

pub use orders::Order;
pub use orders::OrdersFilters;
pub use orders::Tick;

Modulesยง

api
books ๐Ÿ”’
error ๐Ÿ”’
orders

Structsยง

BookIterator
An iterator over orders for a specific orderbook
Orderbook
OrderbooksFilter
OrderbooksResponse
TempoDex
The JSON-RPC handlers for the dex_ namespace.

Enumsยง

DexApiError
DEX API specific errors that extend [EthApiError].

Constantsยง

DEFAULT_LIMIT ๐Ÿ”’
Default limit for pagination
MAX_LIMIT ๐Ÿ”’
Maximum limit for pagination

Functionsยง

get_book_keys_for_iteration ๐Ÿ”’
Gets book keys to iterate over. If both base and quote are specified, returns only that book. Otherwise returns all book keys (filtering happens later during iteration).
order_matches_filter ๐Ÿ”’
Checks if an order matches the given filters
orderbook_matches_filter ๐Ÿ”’
Checks if an orderbook matches the given filters
parse_order_cursor ๐Ÿ”’
Parses a QUANTITY cursor string into a u128 for orders
parse_orderbook_cursor ๐Ÿ”’
Parses a cursor string into a B256 for orderbooks