# Functions
FromHorizonAsset is a factory method.
InvertNumber inverts a number, returns nil if the original number is nil, preserves precision.
IsBotKey checks whether a given string is a BotKey.
MakeOrderBook creates a new OrderBook from the asks and the bids.
MakeOrderConstraints is a factory method for OrderConstraints.
MakeOrderConstraintsFromOverride is a factory method to convert an OrderConstraintsOverride to an OrderConstraints.
MakeOrderConstraintsOverride is a factory method.
MakeOrderConstraintsOverrideFromConstraints is a factory method for OrderConstraintsOverride.
MakeOrderConstraintsWithCost is a factory method for OrderConstraints.
MakeOrderConstraintsWithOverride is a factory method for OrderConstraints, oc is not a pointer because we want a copy since we modify it.
MakePassthroughAssetDisplayFn is a factory method for a commonly used AssetDisplayFn.
MakeSdexMappedAssetDisplayFn is a factory method for a commonly used AssetDisplayFn.
MakeSortedBotKey makes a BotKey by sorting the passed in assets.
MakeTimestamp creates a new Timestamp.
MakeTimestampFromTime creates a new Timestamp.
MakeTradingPair is a factory method.
MakeTransactionID is a factory method for convenience.
MustNumberFromString panics when there's an error.
NumberByCappingPrecision returns a number with a precision that is at max the passed in precision.
NumberFromFloat makes a Number from a float.
NumberFromString makes a Number from a string, by calling NumberFromFloat.
OrderActionFromString is a convenience to convert from common strings to the corresponding OrderAction.
OrderTypeFromString is a convenience to convert from common strings to the corresponding OrderType.
SplitDataKey splits the data key on the account into the hash and part.
TradingPairFromString makes a TradingPair out of a string.
TradingPairFromString2 makes a TradingPair out of a string.
TradingPairs2Strings converts the trading pairs to an array of strings.
TradingPairs2Strings2 converts the trading pairs to an array of strings.
# Constants
this is the list of assets understood by the bot.
this is the list of assets understood by the bot.
this is the list of assets understood by the bot.
this is the list of assets understood by the bot.
These are the available types.
These are the available types.
These are the available types.
this is the list of assets understood by the bot.
this is the list of assets understood by the bot.
this is the list of assets understood by the bot.
this is the list of assets understood by the bot.
this is the list of assets understood by the bot.
this is the list of assets understood by the bot.
this is the list of assets understood by the bot.
this is the list of assets understood by the bot.
this is the list of assets understood by the bot.
this is the list of assets understood by the bot.
this is the list of assets understood by the bot.
this is the list of assets understood by the bot.
this is the list of assets understood by the bot.
this is the list of assets understood by the bot.
this is the list of assets understood by the bot.
this is the list of assets understood by the bot.
OrderActionBuy and OrderActionSell are the two actions.
OrderActionBuy and OrderActionSell are the two actions.
These are the available order types.
These are the available order types.
this is the list of assets understood by the bot.
this is the list of assets understood by the bot.
this is the list of assets understood by the bot.
this is the list of assets understood by the bot.
this is the list of assets understood by the bot.
this is the list of assets understood by the bot.
this is the list of assets understood by the bot.
this is the list of assets understood by the bot.
this is the list of assets understood by the bot.
this is the list of assets understood by the bot.
this is the list of assets understood by the bot.
# Variables
CcxtAssetConverter is the asset converter for the CCXT exchange interface.
Display is a basic string-mapping converter for display purposes.
KrakenAssetConverter is the asset converter for the Kraken exchange.
KrakenAssetConverterOpenOrders is the asset converter for the Kraken exchange's GetOpenOrders API.
NumberConstants holds some useful constants.
# Structs
AssetConverter converts to and from the asset type, it is specific to an exchange.
BotKey is a unique key to identify a bot.
Number abstraction.
OpenOrder represents an open order for a trading account.
Order represents an order in the orderbook.
OrderBook encapsulates the concept of an orderbook on a market.
OrderConstraints describes constraints when placing orders on an excahnge.
OrderConstraintsOverride describes an override for an OrderConstraint.
Trade represents a trade on an exchange.
TradingPair lists an ordered pair that is understood by the bot and our exchange API.
# Interfaces
AssetConverterInterface is the interface which allows the creation of asset converters with logic instead of static bindings.
# Type aliases
Asset is typed and enlists the allowed assets that are understood by the bot.
AssetDisplayFn is a convenient way to encapsulate the logic to display an Asset.
CancelOrderResult is the result of a CancelOrder call.
OrderAction is the action of buy / sell.
OrderType represents a type of an order, example market, limit, etc.
Timestamp is millis since epoch.
TradesByTsID implements sort.Interface for []Trade based on Timestamp and TransactionID.
TransactionID is typed for the concept of a transaction ID of an order.