thrasher-corp / gocryptotrader

A cryptocurrency trading bot and framework supporting multiple exchanges written in Golang.
MIT License
2.96k stars 792 forks source link

gateio: fix spot/futures order issues #1524

Closed shazbert closed 2 months ago

shazbert commented 3 months ago

PR Description

Fixes # (issue)

Type of change

Please delete options that are not relevant and add an x in [] as item is complete.

How has this been tested

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration and also consider improving test coverage whilst working on a certain feature or package.

Checklist

codecov[bot] commented 3 months ago

Codecov Report

Attention: Patch coverage is 48.78049% with 21 lines in your changes are missing coverage. Please review.

Project coverage is 36.02%. Comparing base (44d50a3) to head (fdfaccb).

Additional details and impacted files [![Impacted file tree graph](https://app.codecov.io/gh/thrasher-corp/gocryptotrader/pull/1524/graphs/tree.svg?width=650&height=150&src=pr&token=41784B23TS&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=thrasher-corp)](https://app.codecov.io/gh/thrasher-corp/gocryptotrader/pull/1524?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=thrasher-corp) ```diff @@ Coverage Diff @@ ## master #1524 +/- ## ========================================== - Coverage 36.02% 36.02% -0.01% ========================================== Files 411 411 Lines 176891 176914 +23 ========================================== + Hits 63726 63728 +2 - Misses 105384 105402 +18 - Partials 7781 7784 +3 ``` | [Files](https://app.codecov.io/gh/thrasher-corp/gocryptotrader/pull/1524?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=thrasher-corp) | Coverage Δ | | |---|---|---| | [exchanges/gateio/gateio.go](https://app.codecov.io/gh/thrasher-corp/gocryptotrader/pull/1524?src=pr&el=tree&filepath=exchanges%2Fgateio%2Fgateio.go&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=thrasher-corp#diff-ZXhjaGFuZ2VzL2dhdGVpby9nYXRlaW8uZ28=) | `14.19% <0.00%> (+0.01%)` | :arrow_up: | | [exchanges/gateio/gateio\_wrapper.go](https://app.codecov.io/gh/thrasher-corp/gocryptotrader/pull/1524?src=pr&el=tree&filepath=exchanges%2Fgateio%2Fgateio_wrapper.go&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=thrasher-corp#diff-ZXhjaGFuZ2VzL2dhdGVpby9nYXRlaW9fd3JhcHBlci5nbw==) | `39.27% <0.00%> (-0.04%)` | :arrow_down: | | [exchanges/order/orders.go](https://app.codecov.io/gh/thrasher-corp/gocryptotrader/pull/1524?src=pr&el=tree&filepath=exchanges%2Forder%2Forders.go&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=thrasher-corp#diff-ZXhjaGFuZ2VzL29yZGVyL29yZGVycy5nbw==) | `90.41% <45.45%> (-0.32%)` | :arrow_down: | | [exchanges/gateio/gateio\_ws\_futures.go](https://app.codecov.io/gh/thrasher-corp/gocryptotrader/pull/1524?src=pr&el=tree&filepath=exchanges%2Fgateio%2Fgateio_ws_futures.go&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=thrasher-corp#diff-ZXhjaGFuZ2VzL2dhdGVpby9nYXRlaW9fd3NfZnV0dXJlcy5nbw==) | `44.76% <62.50%> (+0.25%)` | :arrow_up: | ... and [8 files with indirect coverage changes](https://app.codecov.io/gh/thrasher-corp/gocryptotrader/pull/1524/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=thrasher-corp)