denarius-exchange / denarius

An open-source financial exchange
Other
35 stars 5 forks source link

Add persistence storage (trading desk information) #30

Closed analyticbastard closed 10 years ago

analyticbastard commented 10 years ago

This database is used to store and retrieve the capacity and information of the trading desk to operate in the exchange (with the current asset).

This database can be implemented without a proper durable mechanism, but with a memory storage such as Infinispan, since it will be heavily accessed but the information contained there can be (must be) derived, roughly: Deposited initial amount + Favourable trades - Lost trades - commissions = Current Current - Assets bought - Margin (requirements for holding current assets) = Available

A derivation thread can perform these computations and store them so that any connector node can access this information to allow or deny orders.

analyticbastard commented 10 years ago

Same as issues #18 and #28 , I close the issue. If further updates are necessary to the confirmed trades database mechanism, a new issue must be opened.