mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-05-24 07:26:47 +00:00
GateIO: Add various risk API endpoints (#2106)
* gateio: risk update and tests (cherry-pick) * Update exchanges/gateio/risk.go Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update exchanges/gateio/risk.go Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * ai: nits * Update exchanges/gateio/gateio_types.go Co-authored-by: Gareth Kirwan <gbjkirwan@gmail.com> * gk: nits * Update exchanges/gateio/risk.go Co-authored-by: Gareth Kirwan <gbjkirwan@gmail.com> * gk: paging mr pedantic * Update exchanges/gateio/risk.go Co-authored-by: Adrian Gallagher <adrian.gallagher@thrasher.io> * linter: fix * crank: nits --------- Co-authored-by: Ryan O'Hara-Reid <ryan.oharareid@thrasher.io> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Co-authored-by: Gareth Kirwan <gbjkirwan@gmail.com> Co-authored-by: Adrian Gallagher <adrian.gallagher@thrasher.io>
This commit is contained in:
55
exchanges/gateio/testdata/http.json
vendored
Normal file
55
exchanges/gateio/testdata/http.json
vendored
Normal file
@@ -0,0 +1,55 @@
|
||||
{
|
||||
"routes": {
|
||||
"/futures/usdt/risk_limit_table": {
|
||||
"GET": [
|
||||
{
|
||||
"data": [
|
||||
{
|
||||
"deduction": "0",
|
||||
"initial_rate": "0.008",
|
||||
"leverage_max": "125",
|
||||
"maintenance_rate": "0.004",
|
||||
"risk_limit": "1000000",
|
||||
"tier": 1
|
||||
},
|
||||
{
|
||||
"deduction": "500",
|
||||
"initial_rate": "0.009009",
|
||||
"leverage_max": "111",
|
||||
"maintenance_rate": "0.0045",
|
||||
"risk_limit": "1500000",
|
||||
"tier": 2
|
||||
},
|
||||
{
|
||||
"deduction": "1250",
|
||||
"initial_rate": "0.01",
|
||||
"leverage_max": "100",
|
||||
"maintenance_rate": "0.005",
|
||||
"risk_limit": "2000000",
|
||||
"tier": 3
|
||||
},
|
||||
{
|
||||
"deduction": "5250",
|
||||
"initial_rate": "0.013333",
|
||||
"leverage_max": "75",
|
||||
"maintenance_rate": "0.007",
|
||||
"risk_limit": "3000000",
|
||||
"tier": 4
|
||||
},
|
||||
{
|
||||
"deduction": "6750",
|
||||
"initial_rate": "0.01515",
|
||||
"leverage_max": "66",
|
||||
"maintenance_rate": "0.0075",
|
||||
"risk_limit": "5000000",
|
||||
"tier": 5
|
||||
}
|
||||
],
|
||||
"queryString": "table_id=BTC_USDT_202507040223",
|
||||
"bodyParams": "",
|
||||
"headers": {}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user