#[non_exhaustive]pub enum Route {
Ping,
Time,
ExchangeInfo,
FundingInfo,
Ticker24h {
all: bool,
},
PremiumIndex {
all: bool,
},
Klines {
limit: Option<u32>,
},
FundingRate,
OpenInterest,
AggTrades,
Depth {
limit: Option<DepthLimit>,
},
}Expand description
A REST route, with the parameters its weight depends on.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Ping
GET /fapi/v1/ping.
Time
GET /fapi/v1/time.
ExchangeInfo
GET /fapi/v1/exchangeInfo.
FundingInfo
GET /fapi/v1/fundingInfo.
Ticker24h
GET /fapi/v1/ticker/24hr: one symbol, or every symbol when all.
PremiumIndex
GET /fapi/v1/premiumIndex: one symbol, or every symbol when all.
Klines
GET /fapi/v1/klines.
FundingRate
GET /fapi/v1/fundingRate.
OpenInterest
GET /fapi/v1/openInterest.
AggTrades
GET /fapi/v1/aggTrades.
Depth
GET /fapi/v1/depth.
Fields
limit: Option<DepthLimit>The limit parameter, if sent.
Implementations§
Source§impl Route
impl Route
Sourcepub fn cost(self) -> Cost
pub fn cost(self) -> Cost
What the request costs, as measured from X-MBX-USED-WEIGHT-1M deltas
on 2026-10-07.
Two rows differ from Binance’s page. klines bands are inclusive at the
top (a limit of 100 costs 1, 500 costs 2, 1000 costs 5), and omitting
limit costs 5 although it returns 500 rows. depth without limit
costs 1 and returns 500 levels, where an explicit 500 costs 10.