mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-06-01 23:16:51 +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:
@@ -551,6 +551,7 @@ func (b *Base) SetupDefaults(exch *config.ExchangeConfig) error {
|
||||
|
||||
b.API.AuthenticatedSupport = exch.API.AuthenticatedSupport
|
||||
b.API.AuthenticatedWebsocketSupport = exch.API.AuthenticatedWebsocketSupport
|
||||
b.API.Credentials.Subaccount = exch.API.Credentials.Subaccount
|
||||
if b.API.AuthenticatedSupport || b.API.AuthenticatedWebsocketSupport {
|
||||
b.SetAPIKeys(exch.API.Credentials.Key,
|
||||
exch.API.Credentials.Secret,
|
||||
|
||||
Reference in New Issue
Block a user