Skip to content

Commit

Permalink
exchange: remove subAccount var
Browse files Browse the repository at this point in the history
  • Loading branch information
c9s committed May 16, 2023
1 parent ad502f6 commit 70ed672
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/exchange/factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ func New(n types.ExchangeName, key, secret, passphrase string) (types.Exchange,
case types.ExchangeKucoin:
return kucoin.New(key, secret, passphrase), nil

// case types.ExchangeBitget:
// return bitget.New(key, secret, passphrase), nil

default:
return nil, fmt.Errorf("unsupported exchange: %v", n)

Expand All @@ -53,6 +56,5 @@ func NewWithEnvVarPrefix(n types.ExchangeName, varPrefix string) (types.Exchange
}

passphrase := os.Getenv(varPrefix + "_API_PASSPHRASE")
subAccount := os.Getenv(varPrefix + "_SUBACCOUNT")
return New(n, key, secret, passphrase)
}

0 comments on commit 70ed672

Please sign in to comment.