diff --git a/src/app_sparkd/configurations/all_crypto/.env b/src/app_sparkd/configurations/all_crypto/.env new file mode 100644 index 000000000..3782d53d3 --- /dev/null +++ b/src/app_sparkd/configurations/all_crypto/.env @@ -0,0 +1,5 @@ +SPARKD__CONFIG_DIR=src/app_sparkd/configurations/all_crypto +SPARKD__PYTHON_REQUIREMENTS=src/app_sparkd/configurations/gateio_dev/requirements.txt +SPARKD__DATA_DIR=/home/ubuntu/8000/sparkdata/data +SPARKD__IMAGE=sparkd_symbols +SPARKD__RUNTIME_CONF_DIR=/home/ubuntu/8000/sparkdata/conf diff --git a/src/app_sparkd/configurations/all_crypto/gateio_overrides.json b/src/app_sparkd/configurations/all_crypto/gateio_overrides.json new file mode 100644 index 000000000..31dc4a834 --- /dev/null +++ b/src/app_sparkd/configurations/all_crypto/gateio_overrides.json @@ -0,0 +1,11 @@ +{ + "currencies": [ + "USDT" + ], + "futures": [ + "BTC", + "ETH", + "SOL", + "XRP" + ] +} diff --git a/src/app_sparkd/configurations/all_crypto/py_bybit_md_provider.json b/src/app_sparkd/configurations/all_crypto/py_bybit_md_provider.json new file mode 100644 index 000000000..4780917e4 --- /dev/null +++ b/src/app_sparkd/configurations/all_crypto/py_bybit_md_provider.json @@ -0,0 +1,16 @@ +{ + "currencies": [ + "USDT" + ], + "futures": [ + "BTC", + "ETH", + "SOL", + "XRP" + ], + "use_testnet": false, + "logging": { + "console_level": "WARNING", + "file_level": "INFO" + } +} \ No newline at end of file diff --git a/src/app_sparkd/configurations/all_crypto/requirements.txt b/src/app_sparkd/configurations/all_crypto/requirements.txt new file mode 100644 index 000000000..1e68d0197 --- /dev/null +++ b/src/app_sparkd/configurations/all_crypto/requirements.txt @@ -0,0 +1,5 @@ +numpy==2.2.6 +pybit==5.11.0 +requests==2.31.0 +websocket-client==1.8.0 +websockets==15.0.1 diff --git a/src/app_sparkd/configurations/all_crypto/spark.conf b/src/app_sparkd/configurations/all_crypto/spark.conf new file mode 100644 index 000000000..4382be951 --- /dev/null +++ b/src/app_sparkd/configurations/all_crypto/spark.conf @@ -0,0 +1,71 @@ +PublisherOptions { + value { + network_interface: "0.0.0.0" + heartbeat_ms: 5000 + heartbeat_boot_seconds: 60 + skip_options: true + hot_initial: 1024 + hot_growth: 1024 + cold_initial: 8192 + cold_growth: 2048 + channel_prefix: "" + disable_heartbeat: true + } +} + +Logging { + value { + initial_queue_size: 120001 + max_queue_growth: 4 + file { + default_level: "Info" + subsystem { + name: "md" + level: "Diag" + } + } + } +} + +MarketDataConfig { + value { + # python_md_providers { + # venue: VENUE_GATEIO + # module_path: "python_md_providers" + # provider_type: "gateio_md_provider.GateIoMdProvider" + # } + python_md_providers { + venue: VENUE_BYBIT + module_path: "python_interop_plugins" + provider_type: "bybit_md_provider.BybitMdProvider" + } + binance_usds_futures { + num_depth_levels: 5 + url_rest_base: "https://fapi.binance.com" + url_ws_base: "wss://fstream.binance.com" + security_criteria { + clauses { + security_types: SECURITY_TYPE_FUTURE + symbols: @SymbolLists.list[Gateio].symbol + } + } + } + okx { + num_depth_levels: 5 + url_rest_base: "https://www.okx.com" + url_ws_base: "wss://ws.okx.com:8443" + security_criteria { + clauses { + security_types: SECURITY_TYPE_FUTURE + symbols: @SymbolLists.list[Gateio].symbol + } + } + is_application_ping_pong_enabled: true + application_ping_interval_ms: 20000 + application_pong_timeout_ms: 10000 + is_protocol_ping_pong_enabled: true + protocol_ping_interval_ms: 60000 + protocol_pong_timeout_ms: 30000 + } + } +} diff --git a/src/app_sparkd/configurations/all_crypto/symbols.conf b/src/app_sparkd/configurations/all_crypto/symbols.conf new file mode 100644 index 000000000..6f78a2d7f --- /dev/null +++ b/src/app_sparkd/configurations/all_crypto/symbols.conf @@ -0,0 +1,32 @@ + SymbolLists { + value { + list { + key: "Gateio" + symbol: "SOL" + symbol: "BTC" + symbol: "ETH" + symbol: "XRP" + } + } +} + +Symbols { + value { + venues { + name: "VENUE_GATEIO" + spot: @SymbolLists.list[Gateio].symbol + } + venues { + name: "VENUE_BYBIT" + future: @SymbolLists.list[Gateio].symbol + } + venues { + name: "VENUE_BINANCE_USDS_FUTURES" + future: @SymbolLists.list[Gateio].symbol + } + venues { + name: "VENUE_OKX" + future: @SymbolLists.list[Gateio].symbol + } + } +}