pikers / piker

(e2e) foss trading for non-tinas
GNU Affero General Public License v3.0
102 stars 17 forks source link

Change `Position.clears` -> `.events` #510

Open goodboy opened 1 year ago

goodboy commented 1 year ago

As per related requirements in #345 and a bit of tasking in #489, it probably makes sense to make this change for flexibility for things in legacy markets like splits, renames and in modern (crypto) ones things like transfers, forks, etc..

Please also see #478 for an older issue prior to #489 which describes this task set in the past where appropriate content has been movied here.

Note that this issue is a highlevel section of the grander parent milestone in #515.

Of course the current schema records would just be flipped to {'type': 'clear', ...}.

There's a TODO in the respective .accounting._pos module:

TODO:


Further preferred adjustments to actual data schema and surrounding operating machinery: