Author Topic: Market history from blocks  (Read 2452 times)

0 Members and 1 Guest are viewing this topic.

Offline litepresence

I working on a trading bot and I want to test my strategies on historic datas.

check out the Extinction Event framework, it allows you to backtest against centralized exchange data which should be sufficient for most altcoin/bitcoin pairs as:

LTC/BTC on CEX very closely matches OPEN.LTC/OPEN.BTC on DEX; at least on daily candle scale.


By the way, public API servers (e.g. OpenLedger) by default only stores history of 3 days.

that's a crucial tidbit I didn't know


Offline csyk

  • Newbie
  • *
  • Posts: 2
    • View Profile
Thanks, abit!

I getting started to run a full node.

Offline abit

  • Committee member
  • Hero Member
  • *
  • Posts: 4664
    • View Profile
    • Abit's Hive Blog
  • BitShares: abit
  • GitHub: abitmore
There is a `get_fill_order_history` API in history_api provided by the node, but I don't know what's the corresponding one in pybitshares (which is an API wrapper).

By the way, public API servers (e.g. OpenLedger) by default only stores history of 3 days. To get more data, you can run your own node with appropriate settings.
BitShares committee member: abit
BitShares witness: in.abit

Offline csyk

  • Newbie
  • *
  • Posts: 2
    • View Profile
Hi,

I working on a trading bot and I want to test my strategies on historic datas.
I am using pybitshares to communicate openledger blockchain, and I saw that there is no clue if an order is filled.
For example: https://cryptofresh.com/b/25477122 you can see that paying for an asset there is no blockhash only signed as virtual. How this transaction stored on blockchain and how can I get back the full market history from the very beginning?

Best regards,
Csyk