Crate dydx_live_integration

Crate dydx_live_integration 

Source
Expand description

Live integration tests for dYdX data client against public testnet.

These tests verify end-to-end data flow from dYdX testnet to NautilusTraderโ€™s data engine, including subscription management, orderbook handling, and data type conversions.

Usage:

# Run all live integration tests against testnet
cargo run --bin dydx-live-integration -p nautilus-dydx

# Override endpoints
DYDX_HTTP_URL=https://indexer.v4testnet.dydx.exchange \
DYDX_WS_URL=wss://indexer.v4testnet.dydx.exchange/v4/ws \
cargo run --bin dydx-live-integration -p nautilus-dydx

Requirements:

  • Outbound network access to dYdX v4 testnet indexer
  • No credentials required (public endpoints only)

Functionsยง

main ๐Ÿ”’
test_complete_data_flow ๐Ÿ”’
test_connect_and_subscribe ๐Ÿ”’
test_crossed_orderbook_detection ๐Ÿ”’
test_orderbook_snapshot_refresh ๐Ÿ”’
test_request_historical_bars ๐Ÿ”’