thrasher-corp / gocryptotrader

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

Gateio: Add unified account fetching #1573

Open shazbert opened 6 days ago

shazbert commented 6 days ago

PR Description

Adds unified account fetching. This is just a mapping implementation, I don't have unified account enabled so I am not going to attempt to add this to the wrapper just yet, until I get an account that supports it. But it at least gives people the option to use it.

Can close if testing requirements need to be done this is just cherry picked from another branch.

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 6 days ago

Codecov Report

Attention: Patch coverage is 0% with 7 lines in your changes missing coverage. Please review.

Project coverage is 36.25%. Comparing base (258b60c) to head (8cdb565).

Additional details and impacted files [![Impacted file tree graph](https://app.codecov.io/gh/thrasher-corp/gocryptotrader/pull/1573/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/1573?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 #1573 +/- ## ========================================== - Coverage 36.26% 36.25% -0.01% ========================================== Files 419 419 Lines 183133 183140 +7 ========================================== - Hits 66405 66390 -15 - Misses 108643 108669 +26 + Partials 8085 8081 -4 ``` | [Files](https://app.codecov.io/gh/thrasher-corp/gocryptotrader/pull/1573?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\_types.go](https://app.codecov.io/gh/thrasher-corp/gocryptotrader/pull/1573?src=pr&el=tree&filepath=exchanges%2Fgateio%2Fgateio_types.go&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=thrasher-corp#diff-ZXhjaGFuZ2VzL2dhdGVpby9nYXRlaW9fdHlwZXMuZ28=) | `65.71% <ø> (ø)` | | | [exchanges/gateio/gateio.go](https://app.codecov.io/gh/thrasher-corp/gocryptotrader/pull/1573?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.18% <0.00%> (-0.04%)` | :arrow_down: | ... and [16 files with indirect coverage changes](https://app.codecov.io/gh/thrasher-corp/gocryptotrader/pull/1573/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=thrasher-corp)