Crate trading_types

Crate trading_types 

Source

Modules§

depth_util
my_date_formatter
my_duration_formatter

Structs§

Amount
Amount (quantity) of base currency.
Depth
Depth (order book)
DepthMap
Depths
Special structure suitable to be a mutex-protected storage for depths of different sources (pairs)
Liq
Liq (liquidity) is a complex data type that contains all necessary origin information, suitable for further processing. Thus, depth (order book) is a vec of Liqs
OrderPlaced
OrderToPlace
Price
Spread
Spread of depth with convininent calcs. Very suitable for a depth after depth_util::drop_worth
Symbol
Symbol represents usual pair with extra exchange info
Trade
Worth
Worth (cost) = price * amount

Enums§

Side
SideError
SpreadError
SymbolError

Type Aliases§

Balances
BotId
Currency
Exchange
LiqByCurrency
OrderId