pub struct FeeGroupInfoRequest<'a> {
pub product_type: Cow<'a, str>,
pub group_id: Option<Cow<'a, str>>,
}Expand description
Parameters for requesting fee group information.
This struct defines the parameters for querying fee group structure and fee rates via Bybit’s /v5/market/fee-group-info endpoint.
The new grouped fee structure only applies to Pro-level and Market Maker clients and does not apply to retail traders.
Fields§
§product_type: Cow<'a, str>The product type. Currently only “contract” is supported.
Specifies the type of instrument for the fee group data. According to the API documentation, only “contract” is accepted as a value for this parameter.
group_id: Option<Cow<'a, str>>The group ID. Optional parameter to filter by specific fee group.
Valid values are: “1”, “2”, “3”, “4”, “5”, “6”, “7”, “8”. If not specified, returns information for all fee groups.
Implementations§
Source§impl<'a> FeeGroupInfoRequest<'a>
impl<'a> FeeGroupInfoRequest<'a>
Sourcepub fn default() -> FeeGroupInfoRequest<'a>
pub fn default() -> FeeGroupInfoRequest<'a>
Creates a default fee group info request for contracts.
Returns a FeeGroupInfoRequest with product_type set to "contract" and no group ID filter.
This is the standard request for getting all fee group information for contracts.
Sourcepub fn new(
product_type: &'a str,
group_id: Option<&'a str>,
) -> FeeGroupInfoRequest<'a>
pub fn new( product_type: &'a str, group_id: Option<&'a str>, ) -> FeeGroupInfoRequest<'a>
Constructs a new fee group info request with specified parameters.
§Arguments
product_type- The product type (currently only “contract” is valid)group_id- Optional group ID to filter by specific fee group
Sourcepub fn with_group_id(group_id: &'a str) -> FeeGroupInfoRequest<'a>
pub fn with_group_id(group_id: &'a str) -> FeeGroupInfoRequest<'a>
Constructs a new fee group info request for a specific group ID.
§Arguments
group_id- The group ID to filter by (e.g., “1”, “2”, etc.)
Trait Implementations§
Source§impl<'a> Clone for FeeGroupInfoRequest<'a>
impl<'a> Clone for FeeGroupInfoRequest<'a>
Source§fn clone(&self) -> FeeGroupInfoRequest<'a>
fn clone(&self) -> FeeGroupInfoRequest<'a>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more