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 AutoCancelAllOpenOrdersRequest

Source§

const PRODUCT: Product = Product::UsdMFutures

Source§

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

Source§

const METHOD: Method = Method::POST

Source§

const KEYED: bool = false

Source§

const SIGNED: bool = true

Source§

type Response = AutoCancelAllOpenOrdersResponse

Source§

impl Request for CancelAllOpenOrdersRequest

Source§

const PRODUCT: Product = Product::UsdMFutures

Source§

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

Source§

const METHOD: Method = Method::DELETE

Source§

const KEYED: bool = false

Source§

const SIGNED: bool = true

Source§

type Response = CancelAllOpenOrdersResponse

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 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 = NewOrder