Author Topic: How is the asset exchange rate computed from the blockchain operation?  (Read 282 times)

0 Members and 1 Guest are viewing this topic.

Offline FrankBlabu


I would like to learn more about the technology bitshares is based on. For that purpose I am using pybitshares to list the raw operations in the blockchain. Now I wonder how the current (settlement) exchange rate is computed using these operations?

From time to time, an asset feed operation arrives. But this seems not to happen frequent enough to get a settlement exchange rate for every major asset daily or even more frequently. So I assume it is computed from the limit order creates and cancels instead. But how?

Is there documentation about this? Or even a link to a source file implementing the basic algorithm?

Thank you in advance!

Offline abit

  • Committee member
  • Hero Member
  • *
  • Posts: 3563
    • View Profile
    • Steemit Blog
  • BitShares: abit
  • GitHub: abitmore
I'm not sure whether your definition of "settlement" and the word used in the system are the same.

Code about order matching:

Code about price feed:
BTS account: abit
BTS committee member: abit
BTS witness: in.abit

Offline FrankBlabu

Yes, great and well documented ! This helps me a lot in understanding the technical background. Thank you very much !