...
This commit is contained in:
parent
ae3295c3e3
commit
b7fb5c9085
@ -635,19 +635,19 @@ object AutoTradingManager {
|
||||
|
||||
suspend fun checkBalance(isMorning: Boolean = true) : UnifiedBalance? {
|
||||
var balance : UnifiedBalance? = null
|
||||
if (isMorning) {
|
||||
// if (isMorning) {
|
||||
balance = KisTradeService.fetchIntegratedBalance().getOrNull()
|
||||
if (AUTOSELL) balance?.let { resumePendingSellOrders(KisTradeService, it) }
|
||||
return balance
|
||||
} else {
|
||||
// return balance
|
||||
// } else {
|
||||
// listOf<String>("Y","X").forEach { code ->
|
||||
// KisTradeService.fetchIntegratedBalance(code).getOrNull()?.let {
|
||||
// sellingAfterMarketOnePrice(KisTradeService, it, code)
|
||||
// }
|
||||
// delay(1000)
|
||||
// }
|
||||
}
|
||||
return null
|
||||
// }
|
||||
return balance
|
||||
}
|
||||
|
||||
suspend fun executeMarketLoop() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user