Polymarket
Config
class PolymarketDataClientConfig
Bases: LiveDataClientConfig
Configuration for PolymarketDataClient
instances.
- Parameters:
- venue (Venue , default POLYMARKET_VENUE) – The venue for the client.
- private_key (str , optional) – The Polymarket private key.
If
None
then will source the POLYMARKET_PK environment variable. - signature_type (int , default 0 *(*EOA )) – The Polymarket signature type.
- funder (str , optional) – The Polymarket USDC wallet address.
If
None
then will source the POLYMARKET_FUNDER environment variable. - api_key (str , optional) – The Polymarket API public key.
If
None
then will source the POLYMARKET_API_KEY environment variable. - api_secret (str , optional) – The Polymarket API public key.
If
None
then will source the POLYMARKET_API_SECRET environment variable. - passphrase (str , optional) – The Polymarket API passphrase.
If
None
then will source the POLYMARKET_PASSPHRASE environment variable. - base_url_http (str , optional) – The HTTP client custom endpoint override.
- base_url_ws (str , optional) – The WebSocket client custom endpoint override.
- ws_connection_delay_secs (PositiveInt , default 5) – The delay (seconds) prior to main websocket connection to allow initial subscriptions to arrive.
- update_instruments_interval_mins (PositiveInt , default 60) – The interval (minutes) between updating Polymarket instruments.