Commit 7536d71
exchanges: Update Poloniex exchange API (thrasher-corp#2105)
* wrappers and time-in-force calling approach
* minor change
* update gateio string to timeInForce conversion and unit test
* set limiter to first level mock data list and updated unit tests
* address nested slices length limit
* minor fix recording file and update unit tests
* minor updates on unit tests
* mock data update using the mock data trimmer
* fix minor linter issues
* mock file re-recording
* feedback: overall update based on feedback
* misc issue fix
* update websocket based on multi connection and other wrapper updates
* overall update with unit tests added and endpoints removed
* endpoint functions and unit tests update
* update endpoints and types naming
* nitpicks
* unit tests update
* overall unit tests update and websocket handlers fix
* overall update on endpoints, websocket handlers, and testing
* rm comments based on gk's feedback
* response declaration and return change, and diverse update
* feedback: apply change requests
* fix websocket runtime errors
* minor orderbook fix
* improve code coverage and overall code update
* shorten error check expression
* types, unit tests, and websocket handlers update
* endpoints, websocket handlers, and unit tests update
* apply websocket templating with minor fix
* update websocket handlers
* update unit endpoints, and mock file
* mock file update and reduction
* rm HTTPRecording value assign
* update wrapper, fix unit text and websocket update
* config and wrapper endpoints fix and unit tests update
* suppress misc error
* revert the last
* split spot public and private subscriptions and handlers
* minor cleanups
* futures websocket update, added endpoints, updated endpoints and types
* added and updated endpoint methods and fix websocket issues
* wrapper loops and error returns update
* unit test functions naming updates
* wrapper methods and types update
* input validation fix and testing
* rest endpoints and unit tests fix
* fix ID generation
* updated SubmitOrder parameter validations and update unit tests accordingly.
* change based og gks feedback
* actioned gk's feedback comments
* based on shazberts feedback: updated futures endpoints and correcsponding unit tests
* overall wrapper, unit tests, and types marshaling update
* remove unnecessary code
* update on wrapper request params types
* rm
* update smart orders, live tested, and unit tests update
* based on gk's and scott's feedback: wrapper and types update
* types, unmarshalers, wrapper handler update
* wrapper params fix
* comments, code coverage update, and mock recording
* overall types, wrapper functions, and mock records update
* types, time handling, ratelimiter,and endpoints update
* rate-limiters update
* uint8 to string
* added missing state order PENDING_CANCEL
* added missing state order PENDING_CANCEL
* overall update on types, endpoints, wrapper, and rate limiters
* ROCK ROCK ROCK ROCK ROBOT
* Update docs/ADD_NEW_EXCHANGE.md
* Update cmd/documentation/root_templates/root_readme.tmpl
* Fixes an improper example and regenerates documentation
* Corrects typos
* Makes a table label consistent across files
* gatio: fix MessageID regression (cherry-pick me)
* Update exchanges/gateio/gateio_wrapper_test.go
* glorious: AI
* Update exchanges/gateio/gateio_wrapper.go
* thrasher: use optimisation in okx as well
* okx: Add length check in tests for string -> uuid conversion
* thrasher: nits
---------
common: Update ErrorCollector to use mutex and simplify error collection in concurrent operations (thrasher-corp#2090)
* refactor: Update ErrorCollector to use mutex and simplify error collection in concurrent operations
* glorious: nits
* linter: fix
* another find
* Apply suggestion from @gbjk
Co-authored-by: Gareth Kirwan <gbjkirwan@gmail.com>
* Apply suggestion from @gbjk
Co-authored-by: Gareth Kirwan <gbjkirwan@gmail.com>
* one liner defer
* Update common/common.go
Co-authored-by: Gareth Kirwan <gbjkirwan@gmail.com>
* gk: nits
* Update common/common_test.go
Co-authored-by: Scott <gloriousCode@users.noreply.github.com>
* thrasher-: nits
---------
Co-authored-by: shazbert <ryan.oharareid@thrasher.io>
Co-authored-by: Gareth Kirwan <gbjkirwan@gmail.com>
Co-authored-by: shazbert <shazbert@DESKTOP-3QKKR6J.localdomain>
Co-authored-by: Scott <gloriousCode@users.noreply.github.com>
* gateio: Add func GetEstimatedInterestRate (cherry-pickable)
* Add tests
* Update exchanges/gateio/gateio.go
* Update exchanges/gateio/gateio.go
* gk: nits
* thrasher-: nits
---------
* wrapper endpoints input type change
* overall wrapper and unit tests update, and live tests fix
* Trigger CI
* revert linter version
* poloniex overall update
* gk and scotts review feedbacks: unit test and wrapper update
* update linter to 2.6.1
* linter issues resolve
* Poloniex: Proof of Concept resps can contain errors
* trade endpoints response update
* rm panic and fix endpoint limit
* trade endpoints and requester error wrapper and checker update
* update smartorder endpoints and types
* smart orders endpoint and mock data update
* rename Test name to TestStatusCodeUnmarshal
* Proof-of-simplicity
* rn unit test name
* updata onceWebsocketOrderbookCache lock in loop
* spot websocket order book update and endpoints fix
* manual update mock file and revert nil result check
* update wrapper and websocket handlers
* wrapepr batch order cancellation and minor updates
* linter issues fix
* fix linter issue
* change v2 currency endpoint limiter
* added poloniex config upgrade
* minor linter fix
* rm legacy url migration from wrapper
* move config change to v11 and register
* GetOrders feedback
* getorder update and version upgrade fix
* update futures websocket iteration and wrapper handlers
* minor linter fix
* fix race condition and update websocket slice object access
* fix linter issue
* rm lock var
* change v11 config upgrade from replace to delete
* improve v11 config unit test
* added test coverage and updated endpoints and types
* update on types, requester, and unit tests
* minor linter fix
* update type to use currency.Pair and revert order.Type use
* minor fixes on websocket data handling
* websocket subscriptions and handlers update
* update way of subscribing parallely
* reuse manage subscriptions and update subscription handling
* rm time.Sleep
* gk's nits: minor types and websocket update
* sams feedbacks: websocket, types, and websocket handlers update
* linter issue fix
* removed interface check
* gks feedback: update websocket trade endpoint and minor fixed on wrapper
* minot linter fix
* improve unit tests and test coverage, and update on wrapper and mock file
* add more coverage and unti test update
* rm print stmts
* gk and scott's feedback: updated requester functions and others
* futures type variables, endpoints, and wrapper handlers update
* minor fixes on types
* added boolean type and fixed futures and websocket handler, and mock test
* remove some non-sense from code
* resolve websocket response error check from within slice
* update to websocket wrapper handlers and minor fix to unit tests
* suppress a nillness check
* resolve issue with websocket requester
* fix minor linter issue
* linter fix 2
* update websocekt slice interfaces wrapper handlers
* gk and sams feedback: overall update
* codespell fix
* sams feedback: futures endpoint functions update
* add new requesters for batched validated order response handling
* linter issue fix
* fix test issue, added missing endpoint, and improve test coverage
* sam's feedback: update types, and add unit test coverage
* minor change to smart order unit test
* futures types update
* add candle interval hour_8
* fix futures mark price candles fields unmarshal sequence
* update authenticated requester and update on wrapper and endpoint functions
* fix test issues caused by update on requester
* lint
* sams feedback: types update, increase unit test coverage
* sams feedbacks: futures websocket update
* unit tests improvement and mock file update
* update wrapper, endpoints, and unit tests handling
* re- add missing comment
* minor fix on types
* change to types handling
* update webscket handlers, endpoints, and add unit test coverage
* codespell fix
* minor unit test fixes
* fix live test issues
* comment fix
* rm casting
* temporrary fix to GetOrderbook unit test scale value
* update mock file, improve wrapper, and added test coverage
* rm unnecessary comment
* rn ineffectual assignment
* fix platform-dependent error
* add ticker processor to UpdateTicker
* linter fix
* error return from DataHandler
* Minor stream data test fix
* fix live test issue
* fix to wrapper balance handling
* orderbook depth update fix
* fix sams feedbacks
* update wrapper handlers, types, and mock data
* fix linter issue
* minor fix to unmarshaler
* minor improvement on unmarshaler unit test
* rename filename
* added test coverage and update wrapper handlers
* improve trade order wrapper functions
* fix linter issue
* minor order unit test fix
* adrian's feedback: added unit tests, fix nits, update types, and others
* codespell fixes
* formatting issue fix
* revert codespell fixes on other exchanges
* linter issue fix
* update on unit tests
---------
Co-authored-by: Gareth Kirwan <gbjkirwan@gmail.com>1 parent 4f2072f commit 7536d71
File tree
33 files changed
+23254
-22800
lines changed- cmd/exchange_wrapper_standards
- config/versions
- v11
- exchanges
- kline
- mock
- order
- poloniex
- testdata
- internal/testing/exchange
- testdata
- types
33 files changed
+23254
-22800
lines changedLines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
612 | 612 | | |
613 | 613 | | |
614 | 614 | | |
615 | | - | |
616 | | - | |
| 615 | + | |
617 | 616 | | |
618 | 617 | | |
619 | 618 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| |||
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
| 30 | + | |
29 | 31 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2308 | 2308 | | |
2309 | 2309 | | |
2310 | 2310 | | |
2311 | | - | |
2312 | | - | |
2313 | | - | |
2314 | 2311 | | |
2315 | 2312 | | |
| 2313 | + | |
2316 | 2314 | | |
2317 | 2315 | | |
| 2316 | + | |
| 2317 | + | |
| 2318 | + | |
| 2319 | + | |
| 2320 | + | |
2318 | 2321 | | |
2319 | 2322 | | |
2320 | 2323 | | |
2321 | 2324 | | |
2322 | 2325 | | |
2323 | 2326 | | |
2324 | | - | |
2325 | | - | |
2326 | | - | |
2327 | | - | |
2328 | | - | |
2329 | 2327 | | |
2330 | | - | |
2331 | | - | |
| 2328 | + | |
| 2329 | + | |
2332 | 2330 | | |
2333 | 2331 | | |
2334 | 2332 | | |
2335 | 2333 | | |
| 2334 | + | |
| 2335 | + | |
| 2336 | + | |
| 2337 | + | |
| 2338 | + | |
| 2339 | + | |
| 2340 | + | |
2336 | 2341 | | |
2337 | 2342 | | |
2338 | 2343 | | |
| |||
2347 | 2352 | | |
2348 | 2353 | | |
2349 | 2354 | | |
2350 | | - | |
| 2355 | + | |
2351 | 2356 | | |
2352 | 2357 | | |
2353 | 2358 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1364 | 1364 | | |
1365 | 1365 | | |
1366 | 1366 | | |
| 1367 | + | |
| 1368 | + | |
| 1369 | + | |
| 1370 | + | |
1367 | 1371 | | |
1368 | 1372 | | |
1369 | 1373 | | |
| |||
1414 | 1418 | | |
1415 | 1419 | | |
1416 | 1420 | | |
| 1421 | + | |
| 1422 | + | |
| 1423 | + | |
| 1424 | + | |
1417 | 1425 | | |
1418 | 1426 | | |
1419 | 1427 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1649 | 1649 | | |
1650 | 1650 | | |
1651 | 1651 | | |
| 1652 | + | |
| 1653 | + | |
1652 | 1654 | | |
1653 | 1655 | | |
1654 | 1656 | | |
| |||
1813 | 1815 | | |
1814 | 1816 | | |
1815 | 1817 | | |
| 1818 | + | |
| 1819 | + | |
1816 | 1820 | | |
1817 | 1821 | | |
1818 | 1822 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
282 | 282 | | |
283 | 283 | | |
284 | 284 | | |
| 285 | + | |
| 286 | + | |
285 | 287 | | |
286 | 288 | | |
287 | 289 | | |
| |||
304 | 306 | | |
305 | 307 | | |
306 | 308 | | |
| 309 | + | |
| 310 | + | |
307 | 311 | | |
308 | 312 | | |
309 | 313 | | |
| |||
328 | 332 | | |
329 | 333 | | |
330 | 334 | | |
| 335 | + | |
| 336 | + | |
331 | 337 | | |
332 | 338 | | |
333 | 339 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
147 | 147 | | |
148 | 148 | | |
149 | 149 | | |
| 150 | + | |
150 | 151 | | |
151 | 152 | | |
152 | 153 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
253 | 253 | | |
254 | 254 | | |
255 | 255 | | |
256 | | - | |
257 | 256 | | |
258 | | - | |
259 | | - | |
260 | | - | |
| 257 | + | |
| 258 | + | |
261 | 259 | | |
262 | 260 | | |
263 | 261 | | |
264 | | - | |
| 262 | + | |
265 | 263 | | |
266 | 264 | | |
267 | 265 | | |
| |||
277 | 275 | | |
278 | 276 | | |
279 | 277 | | |
| 278 | + | |
280 | 279 | | |
281 | 280 | | |
282 | 281 | | |
| |||
0 commit comments