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>
},
...
]
}
Compute who is the top/bottom # traders and return it in a suitable format.
@judofyr: Is this suitable for you?