From 19375dd7569d9dc42a4a0d3d0f15b49e5db203a6 Mon Sep 17 00:00:00 2001 From: sgrtye Date: Thu, 31 Oct 2024 01:11:36 +0000 Subject: [PATCH] log prices in one line --- test/main.py | 44 ++++++++++++++++++++++++++++---------------- 1 file changed, 28 insertions(+), 16 deletions(-) diff --git a/test/main.py b/test/main.py index 12fd0db..6604483 100644 --- a/test/main.py +++ b/test/main.py @@ -13,14 +13,30 @@ tokens_pair = dict() range_indicator = dict() -tokens_pair['21742633143463906290569050155826241533067272736897614950488156847949938836455'] = '69236923620077691027083946871148646972011131466059644796654161903044970987404' -tokens_pair['69236923620077691027083946871148646972011131466059644796654161903044970987404'] = '21742633143463906290569050155826241533067272736897614950488156847949938836455' -tokens_pair['48331043336612883890938759509493159234755048973500640148014422747788308965732'] = '87584955359245246404952128082451897287778571240979823316620093987046202296181' -tokens_pair['87584955359245246404952128082451897287778571240979823316620093987046202296181'] = '48331043336612883890938759509493159234755048973500640148014422747788308965732' -range_indicator['21742633143463906290569050155826241533067272736897614950488156847949938836455'] = "range self selected" -range_indicator['69236923620077691027083946871148646972011131466059644796654161903044970987404'] = "range self selected" -range_indicator['48331043336612883890938759509493159234755048973500640148014422747788308965732'] = "range self selected" -range_indicator['87584955359245246404952128082451897287778571240979823316620093987046202296181'] = "range self selected" +tokens_pair[ + "21742633143463906290569050155826241533067272736897614950488156847949938836455" +] = "69236923620077691027083946871148646972011131466059644796654161903044970987404" +tokens_pair[ + "69236923620077691027083946871148646972011131466059644796654161903044970987404" +] = "21742633143463906290569050155826241533067272736897614950488156847949938836455" +tokens_pair[ + "48331043336612883890938759509493159234755048973500640148014422747788308965732" +] = "87584955359245246404952128082451897287778571240979823316620093987046202296181" +tokens_pair[ + "87584955359245246404952128082451897287778571240979823316620093987046202296181" +] = "48331043336612883890938759509493159234755048973500640148014422747788308965732" +range_indicator[ + "21742633143463906290569050155826241533067272736897614950488156847949938836455" +] = "range self selected" +range_indicator[ + "69236923620077691027083946871148646972011131466059644796654161903044970987404" +] = "range self selected" +range_indicator[ + "48331043336612883890938759509493159234755048973500640148014422747788308965732" +] = "range self selected" +range_indicator[ + "87584955359245246404952128082451897287778571240979823316620093987046202296181" +] = "range self selected" for low, high in price_range: response = requests.get( @@ -89,8 +105,7 @@ async def main(): # and event1["asks"][-1]["size"] != event2["bids"][-1]["size"] # ): # print("Bets mismatch") - # print(event1["asks"][-1]) - # print(event2["bids"][-1]) + # print(event1["asks"][-1], event2["bids"][-1]) # if ( # event1["bids"] @@ -98,8 +113,7 @@ async def main(): # and event1["bids"][-1]["size"] != event2["asks"][-1]["size"] # ): # print("Bets mismatch") - # print(event1["bids"][-1]) - # print(event2["asks"][-1]) + # print(event1["bids"][-1], event2["asks"][-1]) if ( event1["asks"] @@ -115,8 +129,7 @@ async def main(): float(event1["asks"][-1]["price"]) + float(event2["asks"][-1]["price"]), ) - print(event1["asks"][-1]) - print(event2["asks"][-1]) + print(event1["asks"][-1], event2["asks"][-1]) # if ( # event1["bids"] @@ -132,8 +145,7 @@ async def main(): # float(event1["bids"][-1]["price"]) # + float(event2["bids"][-1]["price"]), # ) - # print(event1["bids"][-1]) - # print(event2["bids"][-1]) + # print(event1["bids"][-1], event2["bids"][-1]) checked.append(asset_id) checked.append(pair_id)