Documentation
¶
Index ¶
Constants ¶
View Source
const ( EnvLive = "live" EnvPaper = "paper" )
Variables ¶
This section is empty.
Functions ¶
func DeleteProfile ¶
func ListProfiles ¶
func ResolveBaseURL ¶
ResolveBaseURL takes a value that is either a well-known alias ("paper", "live") or a full URL, and returns a URL. Empty string defaults to the paper trading URL.
func SaveGlobalConfig ¶
func SaveProfile ¶
Types ¶
type Profile ¶
type Profile struct {
APIKey string `yaml:"api_key"`
SecretKey string `yaml:"secret_key"`
AccessToken string `yaml:"access_token,omitempty"`
Scopes string `yaml:"scopes,omitempty"`
BaseURL string `yaml:"base_url"`
DataURL string `yaml:"data_url"`
// Deprecated: kept for backwards compat with existing profile files.
// New profiles store base_url directly.
Environment string `yaml:"environment,omitempty"`
}
func LoadProfileByName ¶
Click to show internal directories.
Click to hide internal directories.