Skip to content
feat: new method - fetchPositionHistory (#21942)

* fix: common_currency_code python tranpilation no longer causes error AttributeError: list object has no attribute "values"

* feat: new method - fetchPositionHistory

* has["fetchPositionHistory"] = false

* feat(bitget): fetchPositionHistory

* bitget: removed fetchPositionsHistory

* feat(coinex): fetchPositionHistory

* feat(mexc): fetchPositionHistory

* fetchPositionHistory: uses filterBySymbolSinceLimit

* docs: fetchPositionHistory

* add marginMode to MarginModification

* fix coinex

* fix static tests

* feat(okx): fetchPositionHistory

* updated fetchPositionHistory docstring

* feat(gate): fetchPositionHistory

* feat(bybit): fetchPositionHistory

* fetchPositionHistory split into fetchPositionsHistory and fetchPositionHistory

* Revert "bitget: removed fetchPositionsHistory"

This reverts commit ab00d4bb2e57be5a6a2526fbeb1e6602e7edd8f4.

* bitget finish fetchPositionsHistory

* temp: add static tests to gate fetchPositionsHistory, add static test for call with no arguments

* handleMarketTypeAndParams - add defaultValue parameter

* temp - gate

* gate removed defaultType

* fetchPosition(s)History has fixes

* bybit.fetchPositionsHistory static tests

* has==false for fetchPosition(s)History, fetchPosition(s)(ForSymbol), fetchPositionMode, fetchPositionsRisk

* bybit.fetchPositionsHistory fix

* gate fetchPositionsHistory minor fix

* okx.fetchPositionsHistory minor changes

* rename variable

* gate fetchPositionsHistory static tests

* fix response tests

* gate.has["fetchPositionHistory"] updated to "emulated"

* build.js - added fetchPositionsHistory

* add to docs

---------

Co-authored-by: carlosmiei <43336371+carlosmiei@users.noreply.github.com>

[ci skip]