package
0.0.0-20200517214648-90f26a687976
Repository: https://github.com/mhereman/cryptotrader.git
Documentation: pkg.go.dev
# Functions
NewAccountBalance creates a new AccountBalance instance.
NewAccountInfo creates a new AccountInfo instance.
No description provided by the author
NewLimitMakerOrder creates a new LimitMaker order instance.
NewLimitOrder creates a new Limit order instance.
NewMarketOrder creates a new Market order instance.
NewOHLC creates an OHLC instance.
NewOrderBook creates a new OrderBook instance.
NewOrderBookEntry creates a new OrderBookEntry instance.
NewOrderFill creates a new OrderFill instance.
NewOrderInfo creates a new OrderInfo instance.
NewSeries creates a Series instance.
NewSignal creates a new Signal instance.
NewStopLossLimitOrder creates a new StopLossLimit order instance.
NewStopLossOrder creates a new StopLoss order instance.
NewSymbol creates a Symbol instance.
NewSymbolFromString creates a Symbol instance from a string The string format should be: base/quote.
No description provided by the author
NewTakeProfitLimitOrder creates a new TakeProfitLimit order instance.
NewTakeProfitOrder creates a new TakeProfit order instance.
NewTimeframe creates a new Timeframe instance.
NewTimeframeFromString creates a new Timeframe instance from its string representation.
NewTrade creates a new Trade instance.
# Constants
Buy order.
FillOrCancel ...
GoodTillCancel ...
ImmediateOrCancel ...
Limit order.
LimitMaker order.
Market order.
Sell order.
StatusCanceled ...
StatusExpired ...
StatusFilled ...
StatusNew ...
StatusPartiallyFilled ...
StatusPendingCancel ...
StatusRejected ...
StopLoss order.
StopLossLimit order.
TakeProfit order.
TakeProfitLimit order.
TuDay day unit.
TuHour hour unit.
TuMin minute unit.
TuMonth month unit.
TuSec second unit.
TuWeek week unit.
# Structs
AccountBalance represents the current account balance of an asset.
AccountInfo represents information of the account on the exchange.
OHLC represents a candlestick.
Order represents an order on the exchange.
OrderBook represents an assets orderbook on the exchange.
OrderBookEntry represents an entry on the order book.
OrderFill represents a filled trade of an order And order can have multiple fill's before being completely executed.
OrderInfo represents information about an order on the exchange.
Series represents a series of candles of a symbol.
Signal represents a buy or sell signal.
Symbol represents a tradable asset pair.
No description provided by the author
Timeframe represents a timeframe on which to retrieve candles and execute the algorithm on.
Trade represents the information regarding a single trade.
# Type aliases
AlgorithmConfig is the configuration of an algorithm.
OrderStatus of an order.
OrderType of an order.
Side of an order.
TimeframeUnit represents the unit for a timeframe.
TimeInForce of an order.