realistforeningen / bearstock

1 stars 0 forks source link

Generate statistics about traders #5

Closed eistaa closed 9 years ago

eistaa commented 9 years ago

Compute who is the top/bottom # traders and return it in a suitable format.

@judofyr: Is this suitable for you?

{
  'count': <number of elements in the top and bottom lists>,
  'top': [
    {
      'id': <trader id>,
      'turnover': <total turnover>,
      'profit': <profit relative to base prices of products bought>
    },
    ...
  ],
  'bottom': [
    {
      'id': <trader id>,
      'turnover': <total turnover>,
      'profit': <profit relative to base prices of products bought>
    },
    ...
  ]
}
eistaa commented 9 years ago

Implemented in a787e13. Merged into master.