Skip to content

Commit

Permalink
readded missing fields in orderbook
Browse files Browse the repository at this point in the history
  • Loading branch information
TimoScheuermann committed Apr 2, 2021
1 parent 26abd44 commit c0356ab
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/orderbook/orderbook.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,9 @@ export class OrderbookService {
.find({ type: 'sell', stop: { $exists: false } })
.sort(sellSort);

const map = (o: Query<Order[], Order>) => o.select('limit').limit(+limit);
// amount limit stop timestamp
const map = (o: Query<Order[], Order>) =>
o.select('amount limit stop timestamp').limit(+limit);

return {
price: share.price,
shareId: shareId,
Expand Down

0 comments on commit c0356ab

Please sign in to comment.