mirror of
https://github.com/NoFxAiOS/nofx.git
synced 2026-07-18 09:54:35 +08:00
refactor: clean up gate trader configuration
This commit is contained in:
@@ -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(),
|
||||||
|
|||||||
Reference in New Issue
Block a user