refactor: clean up gate trader configuration

This commit is contained in:
tinkle-community
2026-02-03 12:40:53 +08:00
parent 7b908a3e39
commit a5c4d35074

View File

@@ -37,6 +37,7 @@ type GateTrader struct {
// NewGateTrader creates a new Gate trader instance // NewGateTrader creates a new Gate trader instance
func NewGateTrader(apiKey, secretKey string) *GateTrader { func NewGateTrader(apiKey, secretKey string) *GateTrader {
config := gateapi.NewConfiguration() config := gateapi.NewConfiguration()
config.AddDefaultHeader("X-Gate-Channel-Id", "nofx")
client := gateapi.NewAPIClient(config) client := gateapi.NewAPIClient(config)
ctx := context.WithValue(context.Background(), ctx := context.WithValue(context.Background(),