pub struct P2pOrderCreateRequest {
pub advert_id: String,
pub amount: String,
pub contact_info: Option<String>,
pub loginid: Option<String>,
pub p2p_order_create: Value,
pub passthrough: Option<Value>,
pub payment_info: Option<String>,
pub payment_method_ids: Option<Vec<i64>>,
pub rate: Option<f64>,
pub req_id: Option<i64>,
pub subscribe: Option<i64>,
}
Expand description
Creates a P2P order for the specified advert.
Fields§
§advert_id: String
The unique identifier for the advert to create an order against.\n
amount: String
The amount of currency to be bought or sold.\n
contact_info: Option<String>
[Optional] Seller contact information. Only applicable for ‘sell orders’.\n
loginid: Option<String>
[Optional] The login id of the user. Mandatory when multiple tokens were provided during authorize.\n
p2p_order_create: Value
Field ‘p2p_order_create’ mapped to Value due to complexity/potential issues.\n
passthrough: Option<Value>
[Optional] Used to pass data through the websocket, which may be retrieved via the echo_req
output field.\n
payment_info: Option<String>
[Optional] Payment instructions, only applicable for sell orders.\n
payment_method_ids: Option<Vec<i64>>
IDs of payment methods, only applicable for sell orders.\n
rate: Option<f64>
[Optional] Conversion rate from account currency to local currency, only applicable for floating rate adverts.\n
req_id: Option<i64>
[Optional] Used to map request to response.\n
subscribe: Option<i64>
[Optional] If set to 1, will send updates whenever there is an update to the order.\n
Trait Implementations§
Source§impl Clone for P2pOrderCreateRequest
impl Clone for P2pOrderCreateRequest
Source§fn clone(&self) -> P2pOrderCreateRequest
fn clone(&self) -> P2pOrderCreateRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more