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

Trade history? #5

Open
jgustave opened this issue Nov 5, 2023 · 3 comments
Open

Trade history? #5

jgustave opened this issue Nov 5, 2023 · 3 comments

Comments

@jgustave
Copy link

jgustave commented Nov 5, 2023

I did a brief pass through the API, I didn't see a way to extract my historical trades. It helps to pay my taxes :)

@0xtristan
Copy link
Contributor

Trades aren't stored historically on the blockchain since the program is stateless. If you want to log your own trades to your own database you can run the subscribe_transaction example (https://github.com/zetamarkets/zetamarkets-py/blob/master/examples/subscribe_transaction.py) and write trade events to your db.

Else if that's a hassle we do this for you, and the historical trades are available in the Zeta front-end in your trade history (we store it in a database on our end and expose it via API). At some point we're looking to add CSV export of trades to make users accounting easier. Lmk if any other qs.

@ksajan
Copy link

ksajan commented Jun 9, 2024

@0xtristan Hello is it possible to get this API exposed to fetch account historical information? Thank you!

@filipzeta
Copy link
Contributor

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

No branches or pull requests

4 participants