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

How to get available balance information? #128

Open
mburiankova opened this issue Feb 12, 2021 · 1 comment
Open

How to get available balance information? #128

mburiankova opened this issue Feb 12, 2021 · 1 comment
Labels

Comments

@mburiankova
Copy link

Versions

OS:       
Python:   
krakenex: 

What are you trying to achieve?

Hi!

The balance endpoint only gives info on asset pair and volume and doesn't give info on current price and value
(all the info you can get on the kraken welcome page...)

Is there an endpoint which can give all the following information somultaneously?

  • asset
  • amount
  • price
  • 24Hchg
  • value
# code sample

What do you expect to happen?

Is there an endpoint which can give all the following information somultaneously?

  • asset
  • amount
  • price
  • 24Hchg
  • value

What happens instead?

# error message
@veox veox added the question label Feb 28, 2021
@veox
Copy link
Owner

veox commented Feb 28, 2021

No, not to my knowledge.

(all the info you can get on the kraken welcome page...)

Getting this requires:

  • retrieving the full balance;
  • retrieving open orders and positions;
  • subtracting the latter from the former while converting units to the same reference, e.g. a fiat currency.

See examples/print-available-balances.py for a primitive example.

@veox veox changed the title How to get balance information? How to get available balance information? Feb 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants