Open jgustave opened 1 year ago
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.
@0xtristan Hello is it possible to get this API exposed to fetch account historical information? Thank you!
@ksajan you can grab this via api.zeta.markets/v2/trades
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 :)