tradingbot/src/lib.rs
2023-12-02 03:01:34 +09:00

37 lines
1.2 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";
// Select program mode
#[derive(PartialEq)]
pub enum RunningMode {
SIMUL,
TEST,
REAL,
}
pub const RUNNING_MODE: RunningMode = RunningMode::REAL;
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;