[][src]Module trade::api

A unified API for abstracting over various exchanges.

Re-exports

pub use self::gdax as coinbase_pro;

Modules

binance

Implementation of ApiClient for the binance API.

errors

A module defining error types returned by ApiClient implementors.

gdax

Implementation of ApiClient for the GDAX API.

hitbtc

Implementation of ApiClient for the HitBTC API.

order_book

A module defining an helper data structure maintaining a live order book.

symbol

A module defining the Symbol type.

timestamp

A module defining helpers for working with timestamps and timestamped objects.

Structs

Balance

Account balance for one asset.

Cancel

An order to cancel a previous order.

CancelAck

An acknowledgment that a cancel order has been treated by the server.

NotificationFlags

Bit flags indicating which type of notification to forward.

Order

An order to be sent through the API.

OrderAck

An acknowledgment that an order has been treated by the server.

OrderConfirmation

A notification that some order has been received by the exchange.

OrderExpiration

A notification that some order has expired or was canceled.

OrderUpdate

A notification that some order has been updated, i.e. a trade crossed through this order.

Params

Params needed for an API client.

Trade

A liquidity consuming order.

Enums

Notification

A notification that some event happened.

OrderType

Order type.

TimeInForce

See https://www.investopedia.com/terms/t/timeinforce.asp.

Traits

ApiClient

A trait implemented by clients of various exchanges API.

GenerateOrderId

Generate order ids.

Type Definitions

Balances

A wrapper over a (currency name) => (balance) HashMap.