pub struct CopyStartRequest {
pub assets: Option<Value>,
pub copy_start: String,
pub loginid: Option<String>,
pub max_trade_stake: Option<f64>,
pub min_trade_stake: Option<f64>,
pub passthrough: Option<Value>,
pub req_id: Option<i64>,
pub trade_types: Option<Value>,
}
Expand description
Start copy trader bets
Fields§
§assets: Option<Value>
[Optional] Used to set assets to be copied. E.x [“frxUSDJPY”, “R_50”]\n
copy_start: String
API tokens identifying the accounts of trader which will be used to copy trades\n
loginid: Option<String>
[Optional] The login id of the user. Mandatory when multiple tokens were provided during authorize.\n
max_trade_stake: Option<f64>
[Optional] Used to set maximum trade stake to be copied.\n
min_trade_stake: Option<f64>
[Optional] Used to set minimal trade stake to be copied.\n
passthrough: Option<Value>
[Optional] Used to pass data through the websocket, which may be retrieved via the echo_req
output field.\n
req_id: Option<i64>
[Optional] Used to map request to response.\n
trade_types: Option<Value>
[Optional] Used to set trade types to be copied. E.x [“CALL”, “PUT”]\n
Trait Implementations§
Source§impl Clone for CopyStartRequest
impl Clone for CopyStartRequest
Source§fn clone(&self) -> CopyStartRequest
fn clone(&self) -> CopyStartRequest
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for CopyStartRequest
impl Debug for CopyStartRequest
Source§impl<'de> Deserialize<'de> for CopyStartRequest
impl<'de> Deserialize<'de> for CopyStartRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CopyStartRequest
impl RefUnwindSafe for CopyStartRequest
impl Send for CopyStartRequest
impl Sync for CopyStartRequest
impl Unpin for CopyStartRequest
impl UnwindSafe for CopyStartRequest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more