From c62a6369b0ee562dd5efc72b3cedb18231d75333 Mon Sep 17 00:00:00 2001 From: KoalaSat Date: Sat, 10 Sep 2022 15:51:15 +0200 Subject: [PATCH] Expose Satoshis Now on API (#236) --- api/views.py | 1 + 1 file changed, 1 insertion(+) diff --git a/api/views.py b/api/views.py index c958ae68..14f26886 100644 --- a/api/views.py +++ b/api/views.py @@ -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)