exchanges: Update Bybit exchange to V5 (#1301)

* Adding Bybit public endpoints

* Completed adding market endpoints

* Added trade endpoints

* Adding position endpoints

* completing position endpoints

* Adding Pre-upgrade endpoints

* Completed adding Pre-upgrade and Account endpoints

* Added asset endpoints

* Added user endpoints and unit tests

* Adding spot leverage and margin trade endpoints

* spot margin trade added

* added spot-margin-trade, institutional lending, c2c lending, and broker

* Adding wrapper funnctions

* Working on wrapper public methods

* Added wrapper functions and unit tests

* Added websocket support with unit tests

* Update websocket handlers and added rate-limiter

* wrapper function, websocket handlers, and linter issues fixe

* unit tests fixes and codespell correction

* Update documentation

* Minor websocket handling fix and URL consts merging

* types, unit test other updates

* Updated websocket and methods based on review

* Added GetFeeByType method with unit test and fixes

* add filter for Unified and Normal endpoints

* Mock recording and unit tests update

* minor linter issue fix

* websocket and rest tests and fix

* change asset types and wrapper methods update

* rm: forgotten panic message

* endpoints, websocket  and unit tests update

* Added and updated endpoints and unit test

* linter and spell fix

* unit test and orders update

* Update on endpoints, fields, config pairs and formating, and unit tests

* minor update on responses

* Fix unit test and types

* Unit tests, models, and wrapper issues fix and mock test recording

* rm print statement

* Fix issue, add FundingRate wrapper func, mock record

* minor type and unit test update

* Update on order handling and unit test

* Minor test

* Minor fix in wrapper

* unit tests update, recording, and documentation update

* Unit tests and minor wrapper function update

* minor unit test fix

* Added newly added endpoints, unit tests, and mock recording

* Rename GetInstruments -> GetInstrumentInfo

* doc update

* Minor unit tests update

* Minor unit test and wrapper update

* Fix linter issue

* Add unit test and minor updates

* Revert websocket error declaration

* Revert websocket error declaration

* Balace --> Balance

* Fix config issues

* Added next funding time minor fix

* Update GetLatestFundingRates and record mock test data

* Added LatestFundingRate time

* Fix test issue of TestAllExchangeWrappers

* config pairs update

* configtest spot pairs update

* Minor update on options UpdateOrderExecutionLimits wrapper func

* Linter issue fix and added new currency codes

* Added new currency codes

* Update bybit pairs in config_example

* config assets pair format update
This commit is contained in:
Samuael A
2024-01-11 04:35:46 +03:00
committed by GitHub
parent db4f4bf63c
commit fb6d12ac69
32 changed files with 435046 additions and 104692 deletions

View File

@@ -3021,6 +3021,51 @@ var (
FI = NewCode("FI")
USDM = NewCode("USDM")
USDTM = NewCode("USDTM")
LEVER = NewCode("LEVER")
NESS = NewCode("NESS")
KAS = NewCode("KAS")
NEXT = NewCode("NEXT")
VEXT = NewCode("VEXT")
PYUSD = NewCode("PYUSD")
SAIL = NewCode("SAIL")
VV = NewCode("VV")
ORDI = NewCode("ORDI")
CYBER = NewCode("CYBER")
SEILOR = NewCode("SEILOR")
TAVA = NewCode("TAVA")
DSRUN = NewCode("DSRUN")
CWAR = NewCode("CWAR")
GALFT = NewCode("GALFT")
LADYS10000 = NewCode("10000LADYS")
NFT10000 = NewCode("10000NFT")
BONK1000 = NewCode("1000BONK")
BTT1000 = NewCode("1000BTT")
FLOKI1000 = NewCode("1000FLOKI")
LUNC1000 = NewCode("1000LUNC")
PEPE1000 = NewCode("1000PEPE")
XEC1000 = NewCode("1000XEC")
ARKM = NewCode("ARKM")
BICO = NewCode("BICO")
BIGTIME = NewCode("BIGTIME")
BLUR = NewCode("BLUR")
CEEK = NewCode("CEEK")
ETHW = NewCode("ETHW")
FITFI = NewCode("FITFI")
GLMR = NewCode("GLMR")
HIFI = NewCode("HIFI")
HOOK = NewCode("HOOK")
LOOKS = NewCode("LOOKS")
LQTY = NewCode("LQTY")
LUNA2 = NewCode("LUNA2")
MAGIC = NewCode("MAGIC")
PENDLE = NewCode("PENDLE")
PEOPLE = NewCode("PEOPLE")
RDNT = NewCode("RDNT")
RNDR = NewCode("RNDR")
RSS3 = NewCode("RSS3")
SHIB1000 = NewCode("SHIB1000")
SWEAT = NewCode("SWEAT")
TOMI = NewCode("TOMI")
stables = Currencies{
USDT,