Rename function
This commit is contained in:
parent
aa7ec40434
commit
140d65eae0
|
|
@ -121,7 +121,7 @@ pub async fn buy_coin(
|
|||
// check conditions for buying
|
||||
set_is_tradable().await;
|
||||
let mut is_tradable = get_is_tradable().await;
|
||||
let mut suggested_coin = select_suggested_coin().await;
|
||||
let mut suggested_coin = get_suggested_coin_list().await;
|
||||
let mut delete_condition = String::from("WHERE ");
|
||||
let mut is_exist_delete_symbol: bool = false;
|
||||
|
||||
|
|
@ -308,7 +308,7 @@ pub async fn buy_coin_for_test(
|
|||
exchange_info_vec: &Vec<ExchangeInfo>,
|
||||
trade_fee_vec: &Vec<TradeFee>,
|
||||
) -> Result<(), Box<dyn std::error::Error + Send + Sync>> {
|
||||
let mut suggested_coin = select_suggested_coin().await;
|
||||
let mut suggested_coin = get_suggested_coin_list().await;
|
||||
let mut delete_condition = String::from("WHERE ");
|
||||
|
||||
let unit_trade_usdt = fetch_unit_trade_usdt().await;
|
||||
|
|
@ -888,7 +888,7 @@ async fn select_pre_suggested_coin_list() -> Vec<PreSuggestedCoin> {
|
|||
}
|
||||
|
||||
// select a suggested coin having the lowest id in [suggested_coin_list]
|
||||
async fn select_suggested_coin() -> Vec<SuggestedCoin> {
|
||||
async fn get_suggested_coin_list() -> Vec<SuggestedCoin> {
|
||||
let table_name = String::from("suggested_coin_list");
|
||||
let columns = String::from("*");
|
||||
let condition = None;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user