How is the asset exchange rate computed from the blockchain operation?

Started by FrankBlabu, May 31, 2018, 08:38:43 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

FrankBlabu

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


abit

BitShares committee member: abit
BitShares witness: in.abit

FrankBlabu

Hi,

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!