ccxt-go/myokx.go

67 lines
1.9 KiB
Go
Raw Permalink Normal View History

2025-02-28 10:33:20 +08:00
package ccxt
// PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN:
// https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code
type myokx struct {
okx
}
func NewMyokxCore() myokx {
p := myokx{}
setDefaults(&p)
return p
}
func (this *myokx) Describe() interface{} {
return this.DeepExtend(this.okx.Describe(), map[string]interface{} {
"id": "myokx",
"name": "MyOKX (EEA)",
"certified": false,
"pro": true,
"hostname": "eea.okx.com",
"urls": map[string]interface{} {
"logo": "https://user-images.githubusercontent.com/1294454/152485636-38b19e4a-bece-4dec-979a-5982859ffc04.jpg",
"api": map[string]interface{} {
"rest": "https://{hostname}",
},
"www": "https://my.okx.com",
"doc": "https://my.okx.com/docs-v5/en/#overview",
"fees": "https://my.okx.com/pages/products/fees.html",
"referral": map[string]interface{} {
"url": "https://www.my.okx.com/join/CCXT2023",
"discount": 0.2,
},
"test": map[string]interface{} {
"rest": "https://{hostname}",
},
},
"has": map[string]interface{} {
"CORS": nil,
"spot": true,
"margin": nil,
"swap": false,
"future": false,
"option": false,
},
"features": map[string]interface{} {
"swap": map[string]interface{} {
"linear": nil,
"inverse": nil,
},
"future": map[string]interface{} {
"linear": nil,
"inverse": nil,
},
},
})
}
func (this *myokx) Init(userConfig map[string]interface{}) {
this.okx.Init(this.DeepExtend(this.Describe(), userConfig))
this.Itf = this
this.Exchange.DerivedExchange = this
}