diff --git a/test/main.py b/test/main.py index f1aaef0..9a11fce 100644 --- a/test/main.py +++ b/test/main.py @@ -5,10 +5,23 @@ import requests import websockets -price_range = [(10_000, 1_000_000), (1_000_000, 50_000_000), (50_000_000, 2_000_000_000)] +price_range = [ + (10_000, 1_000_000), + (1_000_000, 50_000_000), + (50_000_000, 2_000_000_000), +] 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" + for low, high in price_range: response = requests.get( f"https://gamma-api.polymarket.com/markets?limit=100&closed=false&volume_num_min={low}&volume_num_max={high}" @@ -20,6 +33,7 @@ tokens_pair[token1] = token2 tokens_pair[token2] = token1 range_indicator[token1] = f"range {low} to {high}" + range_indicator[token2] = f"range {low} to {high}" else: print(market)