pub struct BuyContractForMultipleAccountsRequest {
pub buy_contract_for_multiple_accounts: String,
pub loginid: Option<String>,
pub parameters: Option<Parameters>,
pub passthrough: Option<Value>,
pub price: String,
pub req_id: Option<i64>,
pub tokens: Vec<String>,
}
Expand description
Buy a Contract for multiple Accounts specified by the tokens
parameter. Note, although this is an authorized call, the contract is not bought for the authorized account.
Fields§
§buy_contract_for_multiple_accounts: String
Either the ID received from a Price Proposal (proposal
call), or 1
if contract buy parameters are passed in the parameters
field.\n
loginid: Option<String>
[Optional] The login id of the user. Mandatory when multiple tokens were provided during authorize.\n
parameters: Option<Parameters>
[Optional] Used to pass the parameters for contract buy.\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
Maximum price at which to purchase the contract.\n
req_id: Option<i64>
[Optional] Used to map request to response.\n
tokens: Vec<String>
List of API tokens identifying the accounts for which the contract is bought. Note: If the same token appears multiple times or if multiple tokens designate the same account, the contract is bought multiple times for this account.\n
Trait Implementations§
Source§impl Clone for BuyContractForMultipleAccountsRequest
impl Clone for BuyContractForMultipleAccountsRequest
Source§fn clone(&self) -> BuyContractForMultipleAccountsRequest
fn clone(&self) -> BuyContractForMultipleAccountsRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more