mirror of
https://github.com/RoboSats/robosats.git
synced 2025-01-18 12:11:35 +00:00
Expose Satoshis Now on API (#236)
This commit is contained in:
parent
3992032d2a
commit
c62a6369b0
@ -849,6 +849,7 @@ class BookView(ListAPIView):
|
||||
data = ListOrderSerializer(order).data
|
||||
data["maker_nick"] = str(order.maker)
|
||||
|
||||
data["satoshis_now"] = Logics.satoshis_now(order)
|
||||
# Compute current premium for those orders that are explicitly priced.
|
||||
data["price"], data["premium"] = Logics.price_and_premium_now(
|
||||
order)
|
||||
|
Loading…
Reference in New Issue
Block a user