We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2bf1d8c commit d0c711cCopy full SHA for d0c711c
src/trader/apis/binance.ts
@@ -88,6 +88,11 @@ export async function fetchBalance(type: WalletType): Promise<ccxt.Balances> {
88
.then((value) => {
89
logger.silly(`Fetched balance: ${JSON.stringify(value)}`)
90
logger.debug(`Loaded ${Object.keys(value).length} ${type} balances.`)
91
+
92
+ // Cache for next time
93
+ balances[type] = value
94
+ balanceTimestamps[type] = Date.now()
95
96
return value
97
})
98
.catch((reason) => {
0 commit comments