mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-06-04 23:16:54 +00:00
FTX: Add REST staking and basic subaccount functionality (#692)
* Add FTX staking, missing margin APIs and basic subaccount support * Fix backtester tests and add optional subaccount support to exchange_wrapper_issues tool * subAccount to subaccount * Fix TyPo * Expand test coverage * Address nitterinos * Fix typos * Remove unusued error type
This commit is contained in:
@@ -652,6 +652,9 @@ func loadLiveData(cfg *config.Config, base *gctexchange.Base) error {
|
||||
if cfg.DataSettings.LiveData.API2FAOverride != "" {
|
||||
base.API.Credentials.PEMKey = cfg.DataSettings.LiveData.API2FAOverride
|
||||
}
|
||||
if cfg.DataSettings.LiveData.APISubaccountOverride != "" {
|
||||
base.API.Credentials.Subaccount = cfg.DataSettings.LiveData.APISubaccountOverride
|
||||
}
|
||||
validated := base.ValidateAPICredentials()
|
||||
base.API.AuthenticatedSupport = validated
|
||||
if !validated && cfg.DataSettings.LiveData.RealOrders {
|
||||
|
||||
Reference in New Issue
Block a user