Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add get_account_fees() #173

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mkazlauskas
Copy link

#172

Implemented for Binance and Coinbase. Didn't find Nash API docs, so for now it will return a not implemented error. I can implement it for Nash if anyone post a link to relevant docs.

I tested this in my personal project for both exchanges (not via cargo test). Not sure how to set up the tests - a lot of tests (including the new tests) failed after adding .env file with my sandbox credentials for Binance.

I'm new to both rust and this project. I'll happily make an required changes.

Note: there are 2 unrelated changes in binance account tests:

  • VS code insisted to format this line: let get_price_ticker_request = GetPriceTickerRequest { - it is the only place, so it doesn't seem like my editor config is different than what you guys are using - it may actually be a good change.
  • Spelling correction at .expect("Couldn't get acount balances.");

@notdanilo
Copy link
Contributor

@mkazlauskas thanks for the PR. I will review it ASAP

@notdanilo
Copy link
Contributor

As a first though: Nash should also be supported. I will check how to do it.

@notdanilo notdanilo linked an issue Apr 3, 2021 that may be closed by this pull request
@notdanilo
Copy link
Contributor

notdanilo commented Apr 6, 2021

nash-rust needs to implement getAccountVolumes, see nash-io/nash-rust#62

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add function to get account fees
2 participants