nil_client/client/cheat/market.rs
1// Copyright (C) Call of Nil contributors
2// SPDX-License-Identifier: AGPL-3.0-only
3
4use crate::client::Client;
5use crate::error::Result;
6use crate::http;
7use nil_payload::request::cheat::market::*;
8
9impl Client {
10 /// Endpoint: `POST /cheat-set-market-fee`
11 pub async fn cheat_set_market_fee(&self, req: CheatSetMarketFeeRequest) -> Result<()> {
12 http::post("cheat-set-market-fee")
13 .body(req)
14 .server(self.server)
15 .maybe_authorization(self.authorization.as_ref())
16 .circuit_breaker(self.circuit_breaker())
17 .user_agent(&self.user_agent)
18 .send()
19 .await
20 }
21}