mirror of
https://github.com/RoboSats/robosats.git
synced 2025-02-07 13:59:06 +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 = ListOrderSerializer(order).data
|
||||||
data["maker_nick"] = str(order.maker)
|
data["maker_nick"] = str(order.maker)
|
||||||
|
|
||||||
|
data["satoshis_now"] = Logics.satoshis_now(order)
|
||||||
# Compute current premium for those orders that are explicitly priced.
|
# Compute current premium for those orders that are explicitly priced.
|
||||||
data["price"], data["premium"] = Logics.price_and_premium_now(
|
data["price"], data["premium"] = Logics.price_and_premium_now(
|
||||||
order)
|
order)
|
||||||
|
Loading…
Reference in New Issue
Block a user