1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
/// API endpoint paths for the CLOB
// Time & Health
pub const TIME: &str = "/time";
// Authentication
pub const CREATE_API_KEY: &str = "/auth/api-key";
pub const GET_API_KEYS: &str = "/auth/api-keys";
pub const DELETE_API_KEY: &str = "/auth/api-key";
pub const DERIVE_API_KEY: &str = "/auth/derive-api-key";
pub const CLOSED_ONLY: &str = "/auth/ban-status/closed-only";
// Trading Data
pub const TRADES: &str = "/data/trades";
pub const GET_ORDER: &str = "/data/order/";
pub const ORDERS: &str = "/data/orders";
// Order Management
pub const POST_ORDER: &str = "/order";
pub const POST_ORDERS: &str = "/orders";
pub const CANCEL: &str = "/order";
pub const CANCEL_ORDERS: &str = "/orders";
pub const CANCEL_ALL: &str = "/cancel-all";
pub const CANCEL_MARKET_ORDERS: &str = "/cancel-market-orders";
// Market Data
pub const GET_ORDER_BOOK: &str = "/book";
pub const GET_ORDER_BOOKS: &str = "/books";
pub const MID_POINT: &str = "/midpoint";
pub const MID_POINTS: &str = "/midpoints";
pub const PRICE: &str = "/price";
pub const GET_PRICES: &str = "/prices";
pub const GET_SPREAD: &str = "/spread";
pub const GET_SPREADS: &str = "/spreads";
pub const GET_LAST_TRADE_PRICE: &str = "/last-trade-price";
pub const GET_LAST_TRADES_PRICES: &str = "/last-trades-prices";
// Notifications
pub const GET_NOTIFICATIONS: &str = "/notifications";
pub const DROP_NOTIFICATIONS: &str = "/notifications";
// Balance & Allowance
pub const GET_BALANCE_ALLOWANCE: &str = "/balance-allowance";
pub const UPDATE_BALANCE_ALLOWANCE: &str = "/balance-allowance/update";
// Order Scoring
pub const IS_ORDER_SCORING: &str = "/order-scoring";
pub const ARE_ORDERS_SCORING: &str = "/orders-scoring";
// Market Configuration
pub const GET_TICK_SIZE: &str = "/tick-size";
pub const GET_NEG_RISK: &str = "/neg-risk";
pub const GET_FEE_RATE: &str = "/fee-rate";
// Markets
pub const GET_SAMPLING_SIMPLIFIED_MARKETS: &str = "/sampling-simplified-markets";
pub const GET_SAMPLING_MARKETS: &str = "/sampling-markets";
pub const GET_SIMPLIFIED_MARKETS: &str = "/simplified-markets";
pub const GET_MARKETS: &str = "/markets";
pub const GET_MARKET: &str = "/markets/";
pub const GET_MARKET_TRADES_EVENTS: &str = "/live-activity/events/";