binance_async/rest/spot/
account.rs1use crate::models::{AccountInformation, OrderInfo, OrderSide, OrderType, Product, TimeInForce};
2use reqwest::Method;
3use rust_decimal::Decimal;
4
5crate::define_request! {
6 Name => GetAccount;
7 Product => Product::Spot;
8 Endpoint => "/api/v3/account";
9 Method => Method::GET;
10 Signed => true;
11 Request => {};
12 Response => AccountInformation;
13}
14
15crate::define_request! {
16 Name => Order;
17 Product => Product::Spot;
18 Endpoint => "/api/v3/order";
19 Method => Method::GET;
20 Signed => true;
21 Request => {
22 pub symbol: String,
23 pub qty: Decimal,
24 pub price: Option<Decimal>,
25 pub stop_price: Option<Decimal>,
26 pub order_side: OrderSide,
27 pub order_type: OrderType,
28 pub time_in_force: TimeInForce,
29 pub new_client_order_id: Option<String>,
30 };
31 Response => OrderInfo;
32}