Struct krakenrs::KrakenRestAPI[][src]

pub struct KrakenRestAPI { /* fields omitted */ }
Expand description

A connection to the Kraken REST API This only supports blocking http requests for now

Implementations

(Public) Get the kraken system’s time

(Public) Get the kraken system’s status

(Public) Get the list of kraken’s supported assets, and info

(Public) Get the list of kraken’s asset pairs, and info

Arguments:

  • pairs: A list of Kraken asset pair strings to get info about. If empty then all asset pairs

(Public) Get the ticker price for one or more asset pairs

Arguments:

  • pairs: A list of Kraken asset pair strings to get ticker info about

(Private) Get the balance

(Private) Get a websockets authentication token

(Private) Get the list of open orders

Arguments:

  • userref: An optional user-reference to filter the list of open orders by

(Private) Cancel order

Arguments:

  • id: A TxId (OR a UserRefId) of order(s) to cancel

(Private) Cancel all orders (regardless of user ref or tx id)

(Private) Cancel all orders after

Arguments:

  • timeout: Integer timeout specified in seconds. 0 to disable the timer.

(Private) Place a market order

Arguments:

  • market_order: Market order object describing the parameters of the order
  • user_ref_id: Optional user ref id to attach to the order
  • validate: If true, the order is only validated and is not actually placed

(Private) Place a limit order

Arguments:

  • limit_order: Limit order object describing the parameters of the order
  • user_ref_id: Optional user ref id to attach to the order
  • validate: If true, the order is only validated and is not actually placed

Trait Implementations

The type returned in the event of a conversion error.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more