pub struct GetInstrumentsInfoParams {
pub category: Category,
pub symbol: Option<String>,
pub status: Option<Status>,
pub base_coin: Option<String>,
pub limit: Option<i64>,
pub cursor: Option<String>,
}Expand description
Query parameters of GET /v5/market/instruments-info (Client::get_instruments_info).
Fields§
§category: CategoryProduct type. spot, linear, inverse, option.
symbol: Option<String>Symbol name, like BTCUSDT, uppercase only.
status: Option<Status>Symbol status filter linear & inverse & spot By default returns Trading & PendingOpen symbols option By default returns PreLaunch, Trading, and Delivering Spot has Trading only linear & inverse: when status=PreLaunch, it returns Pre-Market …
base_coin: Option<String>Base coin, uppercase only Applies to linear, inverse, option only option: returns BTC by default Pass All to return all option symbols. Only valid when category=option.
limit: Option<i64>Limit for data size per page. [ 1, 1000 ]. Default: 500.
cursor: Option<String>Cursor. Use the nextPageCursor token from the response to retrieve the next page of the result set.
Implementations§
Source§impl GetInstrumentsInfoParams
impl GetInstrumentsInfoParams
Sourcepub fn new(category: Category) -> Self
pub fn new(category: Category) -> Self
Create with the required fields; set the optional ones with the with_* methods.
Sourcepub fn with_symbol(self, v: impl Into<String>) -> Self
pub fn with_symbol(self, v: impl Into<String>) -> Self
Set symbol: symbol name, like BTCUSDT, uppercase only.
Sourcepub fn with_status(self, v: Status) -> Self
pub fn with_status(self, v: Status) -> Self
Set status: symbol status filter linear & inverse & spot By default returns Trading & PendingOpen symbols option By default returns PreLaunch, Trading, and Delivering Spot has Trading only linear & inverse: when status=PreLaunch, it returns Pre-Market …
Sourcepub fn with_base_coin(self, v: impl Into<String>) -> Self
pub fn with_base_coin(self, v: impl Into<String>) -> Self
Set base_coin: base coin, uppercase only Applies to linear, inverse, option only option: returns BTC by default Pass All to return all option symbols. Only valid when category=option.
Sourcepub fn with_limit(self, v: i64) -> Self
pub fn with_limit(self, v: i64) -> Self
Set limit: limit for data size per page. [ 1, 1000 ]. Default: 500.
Sourcepub fn with_cursor(self, v: impl Into<String>) -> Self
pub fn with_cursor(self, v: impl Into<String>) -> Self
Set cursor: cursor. Use the nextPageCursor token from the response to retrieve the next page of the result set.