diff --git a/protocol/contrib/slinky/oracle.json b/protocol/contrib/slinky/oracle.json index 9636c1c6d1..e00f2f4da5 100644 --- a/protocol/contrib/slinky/oracle.json +++ b/protocol/contrib/slinky/oracle.json @@ -22,5 +22,28 @@ }, "type": "market_map_provider" } + }, + "polymarket_api": { + "name": "polymarket_api", + "type": "price_provider", + "api": { + "name": "polymarket_api", + "enabled": true, + "timeout": 3000000000, + "interval": 500000000, + "reconnectTimeout": 2000000000, + "maxQueries": 1, + "atomic": false, + "endpoints": [ + { + "url": "https://clob.polymarket.com/midpoint?token_id=%s", + "authentication": { + "apiKey": "", + "apiKeyHeader": "" + } + } + ], + "batchSize": 0 + } } } \ No newline at end of file diff --git a/protocol/docker-compose.yml b/protocol/docker-compose.yml index 937548306e..d38549e0b7 100644 --- a/protocol/docker-compose.yml +++ b/protocol/docker-compose.yml @@ -113,11 +113,13 @@ services: volumes: - ./localnet/dydxprotocol3:/dydxprotocol/chain/.dave/data slinky0: - image: ghcr.io/skip-mev/slinky-sidecar:v1.0.5 + image: ghcr.io/skip-mev/slinky-sidecar:v1.0.8 entrypoint: > sh -c "slinky --marketmap-provider dydx_migration_api --oracle-config /etc/slinky/oracle.json --log-std-out-level error" environment: - SLINKY_CONFIG_PROVIDERS_RAYDIUM_API_API_ENDPOINTS_0_URL=${RAYDIUM_URL} + - SLINKY_CONFIG_PROVIDERS_UNISWAPV3_API-BASE_API_ENDPOINTS_0_URL=${UNISWAPV3_BASE_URL} + - SLINKY_CONFIG_PROVIDERS_UNISWAPV3_API-ETHEREUM_API_ENDPOINTS_0_URL=${UNISWAPV3_ETHEREUM_URL} volumes: - ./contrib/slinky:/etc/slinky ports: