Request

Trait Request 

Source
pub trait Request: Serialize {
    type Response: DeserializeOwned;

    const PRODUCT: Product;
    const ENDPOINT: &'static str;
    const METHOD: Method;
    const KEYED: bool = false;
    const SIGNED: bool = false;
}

Required Associated Constants§

Provided Associated Constants§

Source

const KEYED: bool = false

Source

const SIGNED: bool = false

Required Associated Types§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl Request for GetAccountRequest

Source§

const PRODUCT: Product = Product::Spot

Source§

const ENDPOINT: &'static str = "/api/v3/account"

Source§

const METHOD: Method = Method::GET

Source§

const KEYED: bool = false

Source§

const SIGNED: bool = true

Source§

type Response = AccountInformation

Source§

impl Request for OrderRequest

Source§

const PRODUCT: Product = Product::Spot

Source§

const ENDPOINT: &'static str = "/api/v3/order"

Source§

const METHOD: Method = Method::GET

Source§

const KEYED: bool = false

Source§

const SIGNED: bool = true

Source§

type Response = OrderInfo

Source§

impl Request for PingRequest

Source§

const PRODUCT: Product = Product::Spot

Source§

const ENDPOINT: &'static str = "/api/v3/ping"

Source§

const METHOD: Method = Method::GET

Source§

const KEYED: bool = false

Source§

const SIGNED: bool = false

Source§

type Response = PingResponse

Source§

impl Request for CancelMultipleOrdersRequest

Source§

const PRODUCT: Product = Product::UsdMFutures

Source§

const ENDPOINT: &'static str = "/fapi/v1/batchOrders"

Source§

const METHOD: Method = Method::DELETE

Source§

const KEYED: bool = false

Source§

const SIGNED: bool = true

Source§

type Response = Vec<CanceledOrder>

Source§

impl Request for CancelOrderRequest

Source§

const PRODUCT: Product = Product::UsdMFutures

Source§

const ENDPOINT: &'static str = "/fapi/v1/order"

Source§

const METHOD: Method = Method::DELETE

Source§

const KEYED: bool = false

Source§

const SIGNED: bool = true

Source§

type Response = CanceledOrder

Source§

impl Request for CloseUserDataStreamRequest

Source§

const PRODUCT: Product = Product::UsdMFutures

Source§

const ENDPOINT: &'static str = "/fapi/v1/listenKey"

Source§

const METHOD: Method = Method::DELETE

Source§

const KEYED: bool = true

Source§

const SIGNED: bool = false

Source§

type Response = CloseUserDataStreamResponse

Source§

impl Request for GetCurrentPositionModeRequest

Source§

const PRODUCT: Product = Product::UsdMFutures

Source§

const ENDPOINT: &'static str = "/fapi/v1/positionSide/dual"

Source§

const METHOD: Method = Method::GET

Source§

const KEYED: bool = false

Source§

const SIGNED: bool = true

Source§

type Response = GetCurrentPositionModeResponse

Source§

impl Request for KeepaliveUserDataStreamRequest

Source§

const PRODUCT: Product = Product::UsdMFutures

Source§

const ENDPOINT: &'static str = "/fapi/v1/listenKey"

Source§

const METHOD: Method = Method::PUT

Source§

const KEYED: bool = true

Source§

const SIGNED: bool = false

Source§

type Response = KeepaliveUserDataStreamResponse

Source§

impl Request for NewOrderRequest

Source§

const PRODUCT: Product = Product::UsdMFutures

Source§

const ENDPOINT: &'static str = "/fapi/v1/order"

Source§

const METHOD: Method = Method::POST

Source§

const KEYED: bool = false

Source§

const SIGNED: bool = true

Source§

type Response = CanceledOrder

Source§

impl Request for StartUserDataStreamRequest

Source§

const PRODUCT: Product = Product::UsdMFutures

Source§

const ENDPOINT: &'static str = "/fapi/v1/listenKey"

Source§

const METHOD: Method = Method::POST

Source§

const KEYED: bool = true

Source§

const SIGNED: bool = false

Source§

type Response = StartUserDataStreamResponse