Rollback adding kelly_betting_usdt
This commit is contained in:
parent
58613d9ba6
commit
4aee72baf4
|
|
@ -915,7 +915,6 @@ async fn initialize_database() {
|
||||||
("available_usdt", "decimal(16,8)", Some("UN")),
|
("available_usdt", "decimal(16,8)", Some("UN")),
|
||||||
("is_tradable", "tinyint", Some("UN")),
|
("is_tradable", "tinyint", Some("UN")),
|
||||||
("unit_trade_usdt", "decimal(16,8)", None),
|
("unit_trade_usdt", "decimal(16,8)", None),
|
||||||
("kelly_betting_usdt", "decimal(16,8)", None),
|
|
||||||
];
|
];
|
||||||
let table_condition = None;
|
let table_condition = None;
|
||||||
|
|
||||||
|
|
@ -928,7 +927,6 @@ async fn initialize_database() {
|
||||||
"available_usdt",
|
"available_usdt",
|
||||||
"is_tradable",
|
"is_tradable",
|
||||||
"unit_trade_usdt",
|
"unit_trade_usdt",
|
||||||
"kelly_betting_usdt",
|
|
||||||
];
|
];
|
||||||
let insert_initial_value = vec![
|
let insert_initial_value = vec![
|
||||||
String::from("0.0"),
|
String::from("0.0"),
|
||||||
|
|
@ -939,7 +937,6 @@ async fn initialize_database() {
|
||||||
String::from("0.0"),
|
String::from("0.0"),
|
||||||
String::from("0"),
|
String::from("0"),
|
||||||
String::from("0.0"),
|
String::from("0.0"),
|
||||||
String::from("0.0"),
|
|
||||||
];
|
];
|
||||||
if exists_result == false {
|
if exists_result == false {
|
||||||
let mut result = new_table(&table_name, &initial_table, &table_condition).await;
|
let mut result = new_table(&table_name, &initial_table, &table_condition).await;
|
||||||
|
|
@ -996,8 +993,10 @@ async fn initialize_database() {
|
||||||
assets_managing_team::add_extra_usdt(free_usdt).await;
|
assets_managing_team::add_extra_usdt(free_usdt).await;
|
||||||
assets_managing_team::update_current_total_usdt().await;
|
assets_managing_team::update_current_total_usdt().await;
|
||||||
}
|
}
|
||||||
|
assets_managing_team::update_kelly_criterion().await;
|
||||||
assets_managing_team::set_available_usdt().await;
|
assets_managing_team::set_available_usdt().await;
|
||||||
assets_managing_team::set_unit_usdt().await;
|
assets_managing_team::set_unit_usdt().await;
|
||||||
|
assets_managing_team::set_is_tradable().await;
|
||||||
|
|
||||||
println!("Ok");
|
println!("Ok");
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user