binance_async_api::rest

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 CreateListenKeyRequest

Source§

const PRODUCT: Product = Product::UsdMFutures

Source§

const METHOD: Method = Method::POST

Source§

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

Source§

const KEYED: bool = true

Source§

type Response = CreateListenKeyResponse

Source§

impl Request for ExchangeInfoRequest

Source§

const PRODUCT: Product = Product::UsdMFutures

Source§

const METHOD: Method = Method::GET

Source§

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

Source§

type Response = ExchangeInfoResponse

Source§

impl Request for KeepAliveListenKeyRequest

Source§

const PRODUCT: Product = Product::UsdMFutures

Source§

const METHOD: Method = Method::PUT

Source§

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

Source§

const KEYED: bool = true

Source§

type Response = KeepAliveListenKeyResponse

Source§

impl<'a> Request for BookTickerRequest<'a>

Source§

const PRODUCT: Product = Product::UsdMFutures

Source§

const METHOD: Method = Method::GET

Source§

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

Source§

type Response = BookTickerResponse

Source§

impl<'a> Request for CancelOrderRequest<'a>

Source§

const PRODUCT: Product = Product::UsdMFutures

Source§

const METHOD: Method = Method::DELETE

Source§

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

Source§

const KEYED: bool = true

Source§

const SIGNED: bool = true

Source§

type Response = CancelOrderResponse

Source§

impl<'a> Request for ChangePositionModeRequest<'a>

Source§

const PRODUCT: Product = Product::UsdMFutures

Source§

const METHOD: Method = Method::POST

Source§

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

Source§

const KEYED: bool = true

Source§

const SIGNED: bool = true

Source§

type Response = ChangePositionModeResponse

Source§

impl<'a> Request for NewOrderRequest<'a>

Source§

const PRODUCT: Product = Product::UsdMFutures

Source§

const METHOD: Method = Method::POST

Source§

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

Source§

const KEYED: bool = true

Source§

const SIGNED: bool = true

Source§

type Response = NewOrderResponse

Source§

impl<'a> Request for OrderBookRequest<'a>

Source§

const PRODUCT: Product = Product::UsdMFutures

Source§

const METHOD: Method = Method::GET

Source§

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

Source§

type Response = OrderBookResponse

Source§

impl<'a> Request for PriceTickerRequest<'a>

Source§

const PRODUCT: Product = Product::UsdMFutures

Source§

const METHOD: Method = Method::GET

Source§

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

Source§

type Response = PriceTickerResponse

Source§

impl<'a> Request for UserCommissionRateRequest<'a>

Source§

const PRODUCT: Product = Product::UsdMFutures

Source§

const METHOD: Method = Method::GET

Source§

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

Source§

const KEYED: bool = true

Source§

const SIGNED: bool = true

Source§

type Response = UserCommissionRateResponse