Skip to content

Commit

Permalink
add hand picked pairs
Browse files Browse the repository at this point in the history
  • Loading branch information
sgrtye committed Oct 30, 2024
1 parent efce095 commit de03861
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion test/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand All @@ -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)

Expand Down

0 comments on commit de03861

Please sign in to comment.