41 lines
1.3 KiB
Rust
41 lines
1.3 KiB
Rust
#![allow(unused)]
|
|
#![allow(warnings)]
|
|
|
|
pub const DB_URL: &str = "mysql://root:Durtkarovh23!@localhost:3306/tradingbot";
|
|
|
|
// put your API Key and Signature in below variables respectively.
|
|
pub const API_KEY: &str = "h7HPxyfUpROa7GINE3Ktx5z5p59jESWyFRKhk2D7rhd6dgcLroyNW4urnujjGCmO"; // real account
|
|
pub const SECRET_KEY: &str = "TkhHmNUG6fCMZcCSjfYn8ZY5UfDbD9O11g9scp2P6fgdyH0eDzcCS9lNpSCLSR6Y"; // real account
|
|
pub const API_KEY_TESTNET: &str =
|
|
"NO6QbO5FvBQtYkdl2MCz819hBxbY83gpoSijCgOQbEgNyLWMny2KJOV5LwPsRGsS"; // for spot trading testnet
|
|
pub const SECRET_KEY_TESTNET: &str =
|
|
"9cQCq6ufVvxrDaOnnVDszy8ZzSYnuTTNk0WEbo3lNkFCIFM9OQ1l3IDPVz5NiTxA"; // for spot trading testnet
|
|
|
|
// URL
|
|
pub const URL_TEST: &str = "https://testnet.binance.vision";
|
|
pub const URL: &str = "https://api1.binance.com";
|
|
pub const FUTURES_URL_TEST: &str = "https://testnet.binancefuture.com";
|
|
pub const FUTURES_URL: &str = "https://fapi.binance.com";
|
|
|
|
// Select program mode
|
|
#[derive(PartialEq)]
|
|
pub enum RunningMode {
|
|
SIMUL,
|
|
TEST,
|
|
REAL,
|
|
}
|
|
|
|
pub static mut RUNNING_MODE: RunningMode = RunningMode::SIMUL;
|
|
|
|
pub mod coex;
|
|
pub mod coin_health_check_team;
|
|
pub mod database_control;
|
|
pub mod decimal_funcs;
|
|
pub mod initialization;
|
|
pub mod server_health_check_team;
|
|
pub mod signal_association;
|
|
pub mod strategy_team;
|
|
pub mod time_checking_team;
|
|
pub mod value_estimation_team;
|
|
pub mod future;
|