pub struct SellContractForMultipleAccountsRequest {
pub loginid: Option<String>,
pub passthrough: Option<Value>,
pub price: String,
pub req_id: Option<i64>,
pub sell_contract_for_multiple_accounts: i64,
pub shortcode: String,
pub tokens: Vec<String>,
}
Expand description
Sell contracts for multiple accounts simultaneously. Uses the shortcode response from buy_contract_for_multiple_accounts
to identify the contract, and authorisation tokens to select which accounts to sell those contracts on. Note that only the accounts identified by the tokens will be affected. This will not sell the contract on the currently-authorised account unless you include the token for the current account.
Fields§
§loginid: Option<String>
[Optional] The login id of the user. Mandatory when multiple tokens were provided during authorize.\n
passthrough: Option<Value>
[Optional] Used to pass data through the websocket, which may be retrieved via the echo_req
output field.\n
price: String
Minimum price at which to sell the contract, or 0
for ‘sell at market’.\n
req_id: Option<i64>
[Optional] Used to map request to response.\n
sell_contract_for_multiple_accounts: i64
Must be 1
\n
shortcode: String
An internal ID used to identify the contract which was originally bought. This is returned from the buy
and buy_contract_for_multiple_accounts
calls.\n
tokens: Vec<String>
Authorisation tokens which select the accounts to sell use for the affected accounts.\n
Trait Implementations§
Source§impl Clone for SellContractForMultipleAccountsRequest
impl Clone for SellContractForMultipleAccountsRequest
Source§fn clone(&self) -> SellContractForMultipleAccountsRequest
fn clone(&self) -> SellContractForMultipleAccountsRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more