You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the /trades endpoint always returns an empty array, independently of adding any of the possible URL params in all their combinations
Description
This is the code I'm running as from the example:
import os
from py_clob_client.constants import POLYGON
from py_clob_client.client import ClobClient
from py_clob_client.clob_types import OrderArgs
from py_clob_client.order_builder.constants import BUY
from py_clob_client.clob_types import ApiCreds, FilterParams
from dotenv import load_dotenv
from pprint import pprint
Overview
the /trades endpoint always returns an empty array, independently of adding any of the possible URL params in all their combinations
Description
This is the code I'm running as from the example:
import os
from py_clob_client.constants import POLYGON
from py_clob_client.client import ClobClient
from py_clob_client.clob_types import OrderArgs
from py_clob_client.order_builder.constants import BUY
from py_clob_client.clob_types import ApiCreds, FilterParams
from dotenv import load_dotenv
from pprint import pprint
from py_clob_client.constants import POLYGON
load_dotenv()
def main():
host = "https://clob.polymarket.com"
key = os.getenv("PK")
creds = ApiCreds(
api_key=os.getenv("CLOB_API_KEY"),
api_secret=os.getenv("CLOB_SECRET"),
api_passphrase=os.getenv("CLOB_PASS_PHRASE"),
)
chain_id = POLYGON
client = ClobClient(host, key=key, chain_id=chain_id, creds=creds)
main()
Notes
The reply is always
[]
Done!
I have added and removed limit, before, after, changed maker and taker, added market (condition_id), and the array always comes back empty.
Action items
The text was updated successfully, but these errors were encountered: