Trait deribit::models::Request

source ·
pub trait Request {
    type Response;

    const METHOD: &'static str;
    const HAS_PAYLOAD: bool = true;

    // Provided method
    fn no_payload(&self) -> bool { ... }
}

Required Associated Types§

Required Associated Constants§

source

const METHOD: &'static str

Provided Associated Constants§

source

const HAS_PAYLOAD: bool = true

Provided Methods§

source

fn no_payload(&self) -> bool

Implementors§

source§

impl Request for GetAccountSummaryRequest

source§

const METHOD: &'static str = "private/get_account_summary"

source§

const HAS_PAYLOAD: bool = true

§

type Response = GetAccountSummaryResponse

source§

impl Request for GetPositionsRequest

source§

const METHOD: &'static str = "private/get_positions"

source§

const HAS_PAYLOAD: bool = true

§

type Response = Vec<GetPositionsResponse, Global>

source§

impl Request for GetSubaccountsRequest

source§

const METHOD: &'static str = "private/get_subaccounts"

source§

const HAS_PAYLOAD: bool = true

§

type Response = Vec<GetSubaccountsResponse, Global>

source§

impl Request for AuthRequest

source§

const METHOD: &'static str = "public/auth"

§

type Response = AuthResponse

source§

impl Request for ExchangeTokenRequest

source§

const METHOD: &'static str = "public/exchange_token"

§

type Response = AuthResponse

source§

impl Request for ForkTokenRequest

source§

const METHOD: &'static str = "public/fork_token"

§

type Response = AuthResponse

source§

impl Request for LogoutRequest

source§

const METHOD: &'static str = "private/logout"

source§

const HAS_PAYLOAD: bool = false

§

type Response = ()

source§

impl Request for GetBookSummaryByCurrencyRequest

source§

const METHOD: &'static str = "public/get_book_summary_by_currency"

§

type Response = Vec<GetBookSummaryByCurrencyResponse, Global>

source§

impl Request for GetFundingRateValueRequest

source§

const METHOD: &'static str = "public/get_funding_rate_value"

§

type Response = f64

source§

impl Request for GetHistoricalVolatilityRequest

source§

const METHOD: &'static str = "public/get_historical_volatility"

source§

const HAS_PAYLOAD: bool = true

§

type Response = Vec<GetHistoricalVolatilityResponse, Global>

source§

impl Request for GetIndexRequest

source§

const METHOD: &'static str = "public/get_index"

§

type Response = GetIndexResponse

source§

impl Request for GetInstrumentsRequest

source§

const METHOD: &'static str = "public/get_instruments"

§

type Response = Vec<GetInstrumentsResponse, Global>

source§

impl Request for GetOrderBookRequest

source§

const METHOD: &'static str = "public/get_order_book"

§

type Response = GetOrderBookResponse

source§

impl Request for DisableCancelOnDisconnectRequest

source§

const METHOD: &'static str = "private/disable_cancel_on_disconnect"

§

type Response = DisableCancelOnDisconnectRequest

source§

impl Request for DisableHeartbeatRequest

source§

const METHOD: &'static str = "public/disable_heartbeat"

source§

const HAS_PAYLOAD: bool = false

§

type Response = DisableHeartbeatResponse

source§

impl Request for EnableCancelOnDisconnectRequest

source§

const METHOD: &'static str = "private/enable_cancel_on_disconnect"

§

type Response = EnableCancelOnDisconnectResponse

source§

impl Request for GetCancelOnDisconnectRequest

source§

const METHOD: &'static str = "private/get_cancel_on_disconnect"

§

type Response = GetCancelOnDisconnectResponse

source§

impl Request for SetHeartbeatRequest

source§

const METHOD: &'static str = "public/set_heartbeat"

§

type Response = SetHeartbeatResponse

source§

impl Request for PrivateSubscribeRequest

source§

const METHOD: &'static str = "private/subscribe"

§

type Response = SubscribeResponse

source§

impl Request for PrivateUnsubscribeRequest

source§

const METHOD: &'static str = "private/unsubscribe"

§

type Response = UnsubscribeResponse

source§

impl Request for PublicSubscribeRequest

source§

const METHOD: &'static str = "public/subscribe"

§

type Response = SubscribeResponse

source§

impl Request for PublicUnsubscribeRequest

source§

const METHOD: &'static str = "public/unsubscribe"

§

type Response = UnsubscribeResponse

source§

impl Request for GetTimeRequest

source§

const METHOD: &'static str = "public/get_time"

source§

const HAS_PAYLOAD: bool = false

§

type Response = GetTimeResponse

source§

impl Request for HelloRequest

source§

const METHOD: &'static str = "public/hello"

§

type Response = HelloResponse

source§

impl Request for TestRequest

source§

const METHOD: &'static str = "public/test"

§

type Response = TestResponse

source§

impl Request for BuyRequest

source§

const METHOD: &'static str = "private/buy"

§

type Response = BuyResponse

source§

impl Request for CancelAllByCurrencyRequest

source§

const METHOD: &'static str = "private/cancel_all_by_currency"

§

type Response = CancelAllResponse

source§

impl Request for CancelAllByInstrumentRequest

source§

const METHOD: &'static str = "private/cancel_all_by_instrument"

§

type Response = CancelAllResponse

source§

impl Request for CancelAllRequest

source§

const METHOD: &'static str = "private/cancel_all"

source§

const HAS_PAYLOAD: bool = false

§

type Response = CancelAllResponse

source§

impl Request for CancelByLabelRequest

source§

const METHOD: &'static str = "private/cancel_by_label"

§

type Response = CancelAllResponse

source§

impl Request for CancelRequest

source§

const METHOD: &'static str = "private/cancel"

§

type Response = CancelResponse

source§

impl Request for EditRequest

source§

const METHOD: &'static str = "private/edit"

§

type Response = EditResponse

source§

impl Request for GetOpenOrdersByCurrencyRequest

source§

const METHOD: &'static str = "private/get_open_orders_by_currency"

§

type Response = Vec<GetOpenOrdersByCurrencyResponse, Global>

source§

impl Request for GetOpenOrdersByInstrumentRequest

source§

const METHOD: &'static str = "private/get_open_orders_by_instrument"

§

type Response = Vec<GetOpenOrdersByInstrumentResponse, Global>

source§

impl Request for GetOrderStateRequest

source§

const METHOD: &'static str = "private/get_order_state"

§

type Response = GetOrderStateResponse

source§

impl Request for SellRequest

source§

const METHOD: &'static str = "private/sell"

§

type Response = SellResponse

source§

impl Request for GetTransfersRequest

source§

const METHOD: &'static str = "private/get_transfers"

§

type Response = GetTransfersResponse

source§

impl Request for SubmitTransferToSubaccountRequest

source§

const METHOD: &'static str = "private/submit_transfer_to_subaccount"

§

type Response = TransferItem

source§

impl Request for SubmitTransferToUserRequest

source§

const METHOD: &'static str = "private/submit_transfer_to_user"

§

type Response = TransferItem

source§

impl Request for WithdrawRequest

source§

const METHOD: &'static str = "/private/withdraw"

§

type Response = WithdrawResponse