Documentation ¶
Index ¶
- Constants
- Variables
- func AllModuleNames() []string
- func ExchangeAccountInfo(args ...objects.Object) (objects.Object, error)
- func ExchangeDepositAddress(args ...objects.Object) (objects.Object, error)
- func ExchangeExchanges(args ...objects.Object) (objects.Object, error)
- func ExchangeOrderCancel(args ...objects.Object) (objects.Object, error)
- func ExchangeOrderQuery(args ...objects.Object) (objects.Object, error)
- func ExchangeOrderSubmit(args ...objects.Object) (objects.Object, error)
- func ExchangeOrderbook(args ...objects.Object) (objects.Object, error)
- func ExchangePairs(args ...objects.Object) (objects.Object, error)
- func ExchangeTicker(args ...objects.Object) (objects.Object, error)
- func ExchangeWithdrawCrypto(args ...objects.Object) (objects.Object, error)
- func ExchangeWithdrawFiat(args ...objects.Object) (objects.Object, error)
- func WriteAsCSV(args ...objects.Object) (objects.Object, error)
- type Context
- type OHLCV
Constants ¶
const ( // ErrParameterConvertFailed error to return when type conversion fails ErrParameterConvertFailed = "%v failed conversion" // ErrEmptyParameter error to return when empty parameter is received ErrEmptyParameter = "received empty parameter for %v" )
Variables ¶
var Modules = map[string]map[string]objects.Object{
"exchange": exchangeModule,
"common": commonModule,
"global": globalModules,
}
Modules map of all loadable modules
var OutputDir string
OutputDir is the default script output directory
Functions ¶
func AllModuleNames ¶
func AllModuleNames() []string
AllModuleNames returns a list of all default module names.
func ExchangeAccountInfo ¶
ExchangeAccountInfo returns account information for requested exchange
func ExchangeDepositAddress ¶
ExchangeDepositAddress returns deposit address (if supported by exchange)
func ExchangeExchanges ¶
ExchangeExchanges returns list of exchanges either enabled or all
func ExchangeOrderCancel ¶
ExchangeOrderCancel cancels order on requested exchange
func ExchangeOrderQuery ¶
ExchangeOrderQuery query order on exchange
func ExchangeOrderSubmit ¶
ExchangeOrderSubmit submit order on exchange
func ExchangeOrderbook ¶
ExchangeOrderbook returns orderbook for requested exchange & currencypair
func ExchangePairs ¶
ExchangePairs returns currency pairs for requested exchange
func ExchangeTicker ¶
ExchangeTicker returns ticker data for requested exchange and currency pair
func ExchangeWithdrawCrypto ¶
ExchangeWithdrawCrypto submit request to withdraw crypto assets
func ExchangeWithdrawFiat ¶
ExchangeWithdrawFiat submit request to withdraw fiat assets