Struct kraapi::api::private::open_positions::KIOpenPositions[][src]

pub struct KIOpenPositions { /* fields omitted */ }

Request builder for the Get Open Positions endpoint

Implementations

impl KIOpenPositions[src]

pub fn build(txid: String) -> Self[src]

Constructor returning a KrakenInput builder for the get open positions endpoint.

  • txid is the transaction ID to query order info for

pub fn build_with_list<T>(txids: T) -> Self where
    T: IntoIterator<Item = String>, 
[src]

Constructor returning a KrakenInput builder for the get open positions endpoint.

  • txids is any iterable collection of transaction IDs to query order info for

pub fn update_transaction_list<T>(self, txids: T) -> Self where
    T: IntoIterator<Item = String>, 
[src]

Update the list of transaction IDs to query order info for. Useful for templating

pub fn do_cals(self, docalcs: bool) -> Self[src]

Should profit/loss calculations be included?

pub fn consolidate(self) -> Self[src]

Should we consolidate output based on market pair?

Currently unstable, testing needed

Trait Implementations

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.