Skip to main content

bybit_api/api/
fmart_bot.rs

1//! F-Martingale Bot API endpoints.
2
3use crate::client::BybitClient;
4use crate::error::Result;
5use crate::models::fmart_bot::*;
6
7impl BybitClient {
8    /// Create a new futures Martingale bot with DCA averaging strategy.
9    pub async fn create_f_mart_bot(
10        &self,
11        params: CreateFMartBotParams,
12    ) -> Result<CreateFMartBotResponse> {
13        self.post("/v5/fmartingalebot/create", &params).await
14    }
15}