GateIO: Enhance order execution limits and currency pair details (#2018)

* refactor(gateio): enhance order execution limits and currency pair details

* Update exchanges/gateio/gateio_wrapper.go

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* REEEEEHHHHHH

* linter: fix

* fix GetOpenInterest when a contract is delisted

* add handling for delisting end time correctly

* Update exchange/order/limits/limits_types.go

Co-authored-by: Gareth Kirwan <gbjkirwan@gmail.com>

* Update exchange/order/limits/limits_types.go

Co-authored-by: Gareth Kirwan <gbjkirwan@gmail.com>

* Update exchanges/gateio/gateio_types.go

Co-authored-by: Gareth Kirwan <gbjkirwan@gmail.com>

* Update exchanges/gateio/gateio_types.go

Co-authored-by: Gareth Kirwan <gbjkirwan@gmail.com>

* gk: nits

* gci: fix

* linter: fix

* gateio: Add launch and update tests (cherry-pick)

* gk: nits + removed spot setting delisting as delisted because it is not a start time value

* glorious: apply diff

---------

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>
This commit is contained in:
Ryan O'Hara-Reid
2025-10-02 14:55:43 +10:00
committed by GitHub
parent ac91fabcd5
commit e11765bc36
4 changed files with 157 additions and 149 deletions

View File

@@ -52,6 +52,7 @@ type MinMaxLevel struct {
MinPrice float64
MaxPrice float64
PriceStepIncrementSize float64
PriceDivisor float64
MultiplierUp float64
MultiplierDown float64
MultiplierDecimal float64
@@ -69,4 +70,8 @@ type MinMaxLevel struct {
MarketStepIncrementSize float64
MaxTotalOrders int64
MaxAlgoOrders int64
Listed time.Time
Delisting time.Time
Delisted time.Time
Expiry time.Time
}