Closed arealclimber closed 8 months ago
taking 2 hrs
npm run start
> tbd-backend@0.8.3 start
> nest start
MONGO_RESOURCE localhost
(node:30594) [MONGOOSE] Warning: `errors` is a reserved schema pathname and may break some functionality. You are allowed to use it, but use at your own risk. To disable this warning pass `suppressReservedKeysWarning` as a schema option.
(Use `node --trace-warnings ...` to show where the warning was created)
[Nest] 30594 - 01/12/2024, 11:37:02 AM LOG [NestFactory] Starting Nest application...
[Nest] 30594 - 01/12/2024, 11:37:02 AM LOG [InstanceLoader] MongooseModule dependencies initialized +21ms
[Nest] 30594 - 01/12/2024, 11:37:02 AM LOG [InstanceLoader] ConfigHostModule dependencies initialized +1ms
[Nest] 30594 - 01/12/2024, 11:37:02 AM LOG [InstanceLoader] AppModule dependencies initialized +0ms
[Nest] 30594 - 01/12/2024, 11:37:02 AM LOG [InstanceLoader] DiscoveryModule dependencies initialized +0ms
[Nest] 30594 - 01/12/2024, 11:37:02 AM LOG [InstanceLoader] ConfigModule dependencies initialized +0ms
[Nest] 30594 - 01/12/2024, 11:37:02 AM LOG [InstanceLoader] ConfigModule dependencies initialized +0ms
[Nest] 30594 - 01/12/2024, 11:37:02 AM LOG [InstanceLoader] ScheduleModule dependencies initialized +1ms
[Nest] 30594 - 01/12/2024, 11:37:02 AM LOG [InstanceLoader] CommonModule dependencies initialized +11ms
[Nest] 30594 - 01/12/2024, 11:37:02 AM LOG [InstanceLoader] PusherModule dependencies initialized +0ms
[Nest] 30594 - 01/12/2024, 11:37:02 AM LOG [InstanceLoader] HttpModule dependencies initialized +0ms
[Nest] 30594 - 01/12/2024, 11:37:02 AM ERROR [MongooseModule] Unable to connect to the database. Retrying (1)...
[Nest] 30594 - 01/12/2024, 11:37:05 AM ERROR [MongooseModule] Unable to connect to the database. Retrying (2)...
[Nest] 30594 - 01/12/2024, 11:37:08 AM ERROR [MongooseModule] Unable to connect to the database. Retrying (3)...
[Nest] 30594 - 01/12/2024, 11:37:11 AM ERROR [MongooseModule] Unable to connect to the database. Retrying (4)...
[Nest] 30594 - 01/12/2024, 11:37:14 AM ERROR [MongooseModule] Unable to connect to the database. Retrying (5)...
[Nest] 30594 - 01/12/2024, 11:37:17 AM ERROR [MongooseModule] Unable to connect to the database. Retrying (6)...
[Nest] 30594 - 01/12/2024, 11:37:21 AM ERROR [MongooseModule] Unable to connect to the database. Retrying (7)...
[Nest] 30594 - 01/12/2024, 11:37:24 AM ERROR [MongooseModule] Unable to connect to the database. Retrying (8)...
[Nest] 30594 - 01/12/2024, 11:37:27 AM ERROR [MongooseModule] Unable to connect to the database. Retrying (9)...
[Nest] 30594 - 01/12/2024, 11:37:27 AM ERROR [ExceptionHandler] Authentication failed.
MongoServerError: Authentication failed.
at Connection.onMessage (/Users/shirley/programming/cafeca/tbd-backend/node_modules/mongoose/node_modules/mongodb/src/cmap/connection.ts:413:18)
at MessageStream.<anonymous> (/Users/shirley/programming/cafeca/tbd-backend/node_modules/mongoose/node_modules/mongodb/src/cmap/connection.ts:243:56)
at MessageStream.emit (node:events:514:28)
at processIncomingData (/Users/shirley/programming/cafeca/tbd-backend/node_modules/mongoose/node_modules/mongodb/src/cmap/message_stream.ts:193:12)
at MessageStream._write (/Users/shirley/programming/cafeca/tbd-backend/node_modules/mongoose/node_modules/mongodb/src/cmap/message_stream.ts:74:5)
at writeOrBuffer (node:internal/streams/writable:392:12)
at _write (node:internal/streams/writable:333:10)
at MessageStream.Writable.write (node:internal/streams/writable:337:10)
at Socket.ondata (node:internal/streams/readable:766:22)
at Socket.emit (node:events:514:28)
remaining 6 hrs
2024-01-26 17:20:16
2024-01-26 17:20:16 > tbd-backend@0.8.3 start:prod
2024-01-26 17:20:16 > node dist/main
2024-01-26 17:20:16
2024-01-26 17:20:25 (node:19) [MONGOOSE] Warning: `errors` is a reserved schema pathname and may break some functionality. You are allowed to use it, but use at your own risk. To disable this warning pass `suppressReservedKeysWarning` as a schema option.
2024-01-26 17:20:25 (Use `node --trace-warnings ...` to show where the warning was created)
2024-01-26 17:20:25 [Nest] 19 - 01/26/2024, 9:20:25 AM LOG [NestFactory] Starting Nest application...
2024-01-26 17:20:25 [Nest] 19 - 01/26/2024, 9:20:25 AM LOG [InstanceLoader] MongooseModule dependencies initialized +136ms
2024-01-26 17:20:25 [Nest] 19 - 01/26/2024, 9:20:25 AM LOG [InstanceLoader] ConfigHostModule dependencies initialized +12ms
2024-01-26 17:20:25 [Nest] 19 - 01/26/2024, 9:20:25 AM LOG [InstanceLoader] AppModule dependencies initialized +0ms
2024-01-26 17:20:25 [Nest] 19 - 01/26/2024, 9:20:25 AM LOG [InstanceLoader] DiscoveryModule dependencies initialized +0ms
2024-01-26 17:20:25 [Nest] 19 - 01/26/2024, 9:20:25 AM LOG [InstanceLoader] ConfigModule dependencies initialized +0ms
2024-01-26 17:20:25 [Nest] 19 - 01/26/2024, 9:20:25 AM LOG [InstanceLoader] ConfigModule dependencies initialized +0ms
2024-01-26 17:20:25 [Nest] 19 - 01/26/2024, 9:20:25 AM LOG [InstanceLoader] ScheduleModule dependencies initialized +3ms
2024-01-26 17:20:25 [Nest] 19 - 01/26/2024, 9:20:25 AM LOG [InstanceLoader] CommonModule dependencies initialized +50ms
2024-01-26 17:20:25 [Nest] 19 - 01/26/2024, 9:20:25 AM LOG [InstanceLoader] PusherModule dependencies initialized +0ms
2024-01-26 17:20:25 [Nest] 19 - 01/26/2024, 9:20:25 AM LOG [InstanceLoader] HttpModule dependencies initialized +0ms
2024-01-26 17:20:26 [Nest] 19 - 01/26/2024, 9:20:26 AM LOG [InstanceLoader] MongooseCoreModule dependencies initialized +776ms
2024-01-26 17:20:26 [Nest] 19 - 01/26/2024, 9:20:26 AM LOG [InstanceLoader] MongooseModule dependencies initialized +132ms
2024-01-26 17:20:26 [Nest] 19 - 01/26/2024, 9:20:26 AM LOG [InstanceLoader] MongooseModule dependencies initialized +0ms
2024-01-26 17:20:26 [Nest] 19 - 01/26/2024, 9:20:26 AM LOG [InstanceLoader] MongooseModule dependencies initialized +0ms
2024-01-26 17:20:26 [Nest] 19 - 01/26/2024, 9:20:26 AM LOG [InstanceLoader] MongooseModule dependencies initialized +0ms
2024-01-26 17:20:26 [Nest] 19 - 01/26/2024, 9:20:26 AM LOG [InstanceLoader] MongooseModule dependencies initialized +1ms
2024-01-26 17:20:26 [Nest] 19 - 01/26/2024, 9:20:26 AM LOG [InstanceLoader] MongooseModule dependencies initialized +0ms
2024-01-26 17:20:26 [Nest] 19 - 01/26/2024, 9:20:26 AM LOG [InstanceLoader] MongooseModule dependencies initialized +0ms
2024-01-26 17:20:26 [Nest] 19 - 01/26/2024, 9:20:26 AM LOG [InstanceLoader] MongooseModule dependencies initialized +0ms
2024-01-26 17:20:26 [Nest] 19 - 01/26/2024, 9:20:26 AM LOG [InstanceLoader] MongooseModule dependencies initialized +1ms
2024-01-26 17:20:26 [Nest] 19 - 01/26/2024, 9:20:26 AM LOG [InstanceLoader] MongooseModule dependencies initialized +0ms
2024-01-26 17:20:26 [Nest] 19 - 01/26/2024, 9:20:26 AM LOG [InstanceLoader] MongooseModule dependencies initialized +0ms
2024-01-26 17:20:26 [Nest] 19 - 01/26/2024, 9:20:26 AM LOG [InstanceLoader] MongooseModule dependencies initialized +0ms
2024-01-26 17:20:26 [Nest] 19 - 01/26/2024, 9:20:26 AM LOG [InstanceLoader] MongooseModule dependencies initialized +0ms
2024-01-26 17:20:26 [Nest] 19 - 01/26/2024, 9:20:26 AM LOG [InstanceLoader] MongooseModule dependencies initialized +0ms
2024-01-26 17:20:26 [Nest] 19 - 01/26/2024, 9:20:26 AM LOG [InstanceLoader] MongooseModule dependencies initialized +0ms
2024-01-26 17:20:26 [Nest] 19 - 01/26/2024, 9:20:26 AM LOG [InstanceLoader] MongooseModule dependencies initialized +0ms
2024-01-26 17:20:26 [Nest] 19 - 01/26/2024, 9:20:26 AM LOG [InstanceLoader] MongooseModule dependencies initialized +0ms
2024-01-26 17:20:26 [Nest] 19 - 01/26/2024, 9:20:26 AM LOG [InstanceLoader] MongooseModule dependencies initialized +0ms
2024-01-26 17:20:26 [Nest] 19 - 01/26/2024, 9:20:26 AM LOG [InstanceLoader] MongooseModule dependencies initialized +0ms
2024-01-26 17:20:26 [Nest] 19 - 01/26/2024, 9:20:26 AM LOG [InstanceLoader] MongooseModule dependencies initialized +0ms
2024-01-26 17:20:26 [Nest] 19 - 01/26/2024, 9:20:26 AM LOG [InstanceLoader] MongooseModule dependencies initialized +0ms
2024-01-26 17:20:26 [Nest] 19 - 01/26/2024, 9:20:26 AM LOG [InstanceLoader] InterestModule dependencies initialized +19ms
2024-01-26 17:20:26 [Nest] 19 - 01/26/2024, 9:20:26 AM LOG [InstanceLoader] TradeModule dependencies initialized +0ms
2024-01-26 17:20:26 [Nest] 19 - 01/26/2024, 9:20:26 AM LOG [InstanceLoader] ExchangeRatesModule dependencies initialized +0ms
2024-01-26 17:20:26 [Nest] 19 - 01/26/2024, 9:20:26 AM LOG [InstanceLoader] BoltTransactionModule dependencies initialized +0ms
2024-01-26 17:20:26 [Nest] 19 - 01/26/2024, 9:20:26 AM LOG [InstanceLoader] CurrencyModule dependencies initialized +0ms
2024-01-26 17:20:26 [Nest] 19 - 01/26/2024, 9:20:26 AM LOG [InstanceLoader] BadgeModule dependencies initialized +0ms
2024-01-26 17:20:26 [Nest] 19 - 01/26/2024, 9:20:26 AM LOG [InstanceLoader] WithdrawModule dependencies initialized +0ms
2024-01-26 17:20:26 [CandlestickService] start
2024-01-26 17:20:26 [CandlestickService] fillCandlestick ticker { source: 0, instId: 'ETH-USDT' }
2024-01-26 17:20:26 [Nest] 19 - 01/26/2024, 9:20:26 AM LOG [InstanceLoader] BalanceModule dependencies initialized +369ms
2024-01-26 17:20:26 [Nest] 19 - 01/26/2024, 9:20:26 AM LOG [InstanceLoader] TickersModule dependencies initialized +0ms
2024-01-26 17:20:26 [Nest] 19 - 01/26/2024, 9:20:26 AM LOG [InstanceLoader] CandlestickModule dependencies initialized +0ms
2024-01-26 17:20:26 [OkxCrawlerService] start
2024-01-26 17:20:26 [OkxCrawlerService] audit ETH-USDT
2024-01-26 17:20:26 [Nest] 19 - 01/26/2024, 9:20:26 AM LOG [InstanceLoader] DepositModule dependencies initialized +1ms
2024-01-26 17:20:26 [Nest] 19 - 01/26/2024, 9:20:26 AM LOG [InstanceLoader] MarketModule dependencies initialized +0ms
2024-01-26 17:20:26 [Nest] 19 - 01/26/2024, 9:20:26 AM LOG [InstanceLoader] OkxCrawlerModule dependencies initialized +0ms
2024-01-26 17:20:26 [OkxCrawlerService] start
2024-01-26 17:20:26 [OkxCrawlerService] audit ETH-USDT
2024-01-26 17:20:26 [Nest] 19 - 01/26/2024, 9:20:26 AM LOG [InstanceLoader] BoltTransactionCrawlerModule dependencies initialized +1ms
2024-01-26 17:20:26 [Nest] 19 - 01/26/2024, 9:20:26 AM LOG [InstanceLoader] SyncModule dependencies initialized +0ms
2024-01-26 17:20:26 [Nest] 19 - 01/26/2024, 9:20:26 AM LOG [InstanceLoader] WebSocketModule dependencies initialized +23ms
2024-01-26 17:20:26 [Nest] 19 - 01/26/2024, 9:20:26 AM LOG [InstanceLoader] CFDModule dependencies initialized +1ms
2024-01-26 17:20:26 [Nest] 19 - 01/26/2024, 9:20:26 AM LOG [InstanceLoader] BalanceSheetModule dependencies initialized +0ms
2024-01-26 17:20:26 [Nest] 19 - 01/26/2024, 9:20:26 AM LOG [InstanceLoader] UserModule dependencies initialized +0ms
2024-01-26 17:20:26 [Nest] 19 - 01/26/2024, 9:20:26 AM LOG [InstanceLoader] CashFlowModule dependencies initialized +0ms
2024-01-26 17:20:26 [Nest] 19 - 01/26/2024, 9:20:26 AM LOG [InstanceLoader] ComprehensiveIncomeModule dependencies initialized +0ms
2024-01-26 17:20:26 [Nest] 19 - 01/26/2024, 9:20:26 AM LOG [InstanceLoader] RankingModule dependencies initialized +1ms
2024-01-26 17:20:26 [Nest] 19 - 01/26/2024, 9:20:26 AM LOG [InstanceLoader] DeWTModule dependencies initialized +0ms
2024-01-26 17:20:26 [Nest] 19 - 01/26/2024, 9:20:26 AM LOG [InstanceLoader] PublicModule dependencies initialized +0ms
2024-01-26 17:20:27 [Nest] 19 - 01/26/2024, 9:20:27 AM LOG [RoutesResolver] AppController {/}: +118ms
2024-01-26 17:20:27 [Nest] 19 - 01/26/2024, 9:20:27 AM LOG [RouterExplorer] Mapped {/, GET} route +3ms
2024-01-26 17:20:27 [Nest] 19 - 01/26/2024, 9:20:27 AM LOG [RoutesResolver] CommonController {/api/v1/common}: +0ms
2024-01-26 17:20:27 [Nest] 19 - 01/26/2024, 9:20:27 AM LOG [RoutesResolver] MarketController {/api/v1/market}: +0ms
2024-01-26 17:20:27 [Nest] 19 - 01/26/2024, 9:20:27 AM LOG [RouterExplorer] Mapped {/api/v1/market/trades/:instId, GET} route +2ms
2024-01-26 17:20:27 [Nest] 19 - 01/26/2024, 9:20:27 AM LOG [RouterExplorer] Mapped {/api/v1/market/lastest-trades/:instId, GET} route +0ms
2024-01-26 17:20:27 [Nest] 19 - 01/26/2024, 9:20:27 AM LOG [RouterExplorer] Mapped {/api/v1/market/guaranteed-stop-fee, GET} route +1ms
2024-01-26 17:20:27 [Nest] 19 - 01/26/2024, 9:20:27 AM LOG [RouterExplorer] Mapped {/api/v1/market/quotation/:instId, GET} route +0ms
2024-01-26 17:20:27 [Nest] 19 - 01/26/2024, 9:20:27 AM LOG [RouterExplorer] Mapped {/api/v1/market/suggestion/:instId, GET} route +0ms
2024-01-26 17:20:27 [Nest] 19 - 01/26/2024, 9:20:27 AM LOG [RouterExplorer] Mapped {/api/v1/market/ticker-static/:instId, GET} route +0ms
2024-01-26 17:20:27 [Nest] 19 - 01/26/2024, 9:20:27 AM LOG [RouterExplorer] Mapped {/api/v1/market/ticker-live-statistics/:instId, GET} route +1ms
2024-01-26 17:20:27 [Nest] 19 - 01/26/2024, 9:20:27 AM LOG [RoutesResolver] TickersController {/api/v1/market}: +0ms
2024-01-26 17:20:27 [Nest] 19 - 01/26/2024, 9:20:27 AM LOG [RouterExplorer] Mapped {/api/v1/market/tickers, GET} route +0ms
2024-01-26 17:20:27 [Nest] 19 - 01/26/2024, 9:20:27 AM LOG [RoutesResolver] DeWTController {/api/v1/dewt}: +0ms
2024-01-26 17:20:27 [Nest] 19 - 01/26/2024, 9:20:27 AM LOG [RouterExplorer] Mapped {/api/v1/dewt, POST} route +1ms
2024-01-26 17:20:27 [Nest] 19 - 01/26/2024, 9:20:27 AM LOG [RoutesResolver] UserController {/api/v1/users}: +0ms
2024-01-26 17:20:27 [Nest] 19 - 01/26/2024, 9:20:27 AM LOG [RouterExplorer] Mapped {/api/v1/users, GET} route +0ms
2024-01-26 17:20:27 [Nest] 19 - 01/26/2024, 9:20:27 AM LOG [RouterExplorer] Mapped {/api/v1/users, POST} route +0ms
2024-01-26 17:20:27 [Nest] 19 - 01/26/2024, 9:20:27 AM LOG [RouterExplorer] Mapped {/api/v1/users/assets, GET} route +0ms
2024-01-26 17:20:27 [Nest] 19 - 01/26/2024, 9:20:27 AM LOG [RouterExplorer] Mapped {/api/v1/users/pnl, GET} route +0ms
2024-01-26 17:20:27 [Nest] 19 - 01/26/2024, 9:20:27 AM LOG [RouterExplorer] Mapped {/api/v1/users/interest, GET} route +0ms
2024-01-26 17:20:27 [Nest] 19 - 01/26/2024, 9:20:27 AM LOG [RouterExplorer] Mapped {/api/v1/users/:address, GET} route +1ms
2024-01-26 17:20:27 [Nest] 19 - 01/26/2024, 9:20:27 AM LOG [RouterExplorer] Mapped {/api/v1/users/:address, PATCH} route +0ms
2024-01-26 17:20:27 [Nest] 19 - 01/26/2024, 9:20:27 AM LOG [RouterExplorer] Mapped {/api/v1/users/:address, DELETE} route +1ms
2024-01-26 17:20:27 [Nest] 19 - 01/26/2024, 9:20:27 AM LOG [RouterExplorer] Mapped {/api/v1/users/cfds/create, POST} route +0ms
2024-01-26 17:20:27 [Nest] 19 - 01/26/2024, 9:20:27 AM LOG [RouterExplorer] Mapped {/api/v1/users/cfds/close, PUT} route +1ms
2024-01-26 17:20:27 [Nest] 19 - 01/26/2024, 9:20:27 AM LOG [RouterExplorer] Mapped {/api/v1/users/deposit, POST} route +10ms
2024-01-26 17:20:27 [Nest] 19 - 01/26/2024, 9:20:27 AM LOG [RoutesResolver] BalanceController {/api/v1/balances}: +1ms
2024-01-26 17:20:27 [Nest] 19 - 01/26/2024, 9:20:27 AM LOG [RouterExplorer] Mapped {/api/v1/balances, GET} route +2ms
2024-01-26 17:20:27 [Nest] 19 - 01/26/2024, 9:20:27 AM LOG [RoutesResolver] ExchangeRatesController {/api/v1/exchange-rates}: +0ms
2024-01-26 17:20:27 [Nest] 19 - 01/26/2024, 9:20:27 AM LOG [RouterExplorer] Mapped {/api/v1/exchange-rates, GET} route +9ms
2024-01-26 17:20:27 [Nest] 19 - 01/26/2024, 9:20:27 AM LOG [RoutesResolver] CFDController {/api/v1/cfds}: +0ms
2024-01-26 17:20:27 [Nest] 19 - 01/26/2024, 9:20:27 AM LOG [RouterExplorer] Mapped {/api/v1/cfds, GET} route +1ms
2024-01-26 17:20:27 [Nest] 19 - 01/26/2024, 9:20:27 AM LOG [RouterExplorer] Mapped {/api/v1/cfds/share/:id, PUT} route +0ms
2024-01-26 17:20:27 [Nest] 19 - 01/26/2024, 9:20:27 AM LOG [RouterExplorer] Mapped {/api/v1/cfds/update, PUT} route +1ms
2024-01-26 17:20:27 [Nest] 19 - 01/26/2024, 9:20:27 AM LOG [RoutesResolver] InterestController {/api/v1/interest}: +0ms
2024-01-26 17:20:27 [Nest] 19 - 01/26/2024, 9:20:27 AM LOG [RoutesResolver] DepositController {/api/v1/deposit}: +0ms
2024-01-26 17:20:27 [Nest] 19 - 01/26/2024, 9:20:27 AM LOG [RouterExplorer] Mapped {/api/v1/deposit, POST} route +1ms
2024-01-26 17:20:27 [Nest] 19 - 01/26/2024, 9:20:27 AM LOG [RoutesResolver] BoltTransactionController {/api/v1/bolt-transactions}: +0ms
2024-01-26 17:20:27 [Nest] 19 - 01/26/2024, 9:20:27 AM LOG [RouterExplorer] Mapped {/api/v1/bolt-transactions/history, GET} route +0ms
2024-01-26 17:20:27 [Nest] 19 - 01/26/2024, 9:20:27 AM LOG [RoutesResolver] PusherController {/pusher}: +1ms
2024-01-26 17:20:27 [Nest] 19 - 01/26/2024, 9:20:27 AM LOG [RouterExplorer] Mapped {/pusher/auth, GET} route +0ms
2024-01-26 17:20:27 [Nest] 19 - 01/26/2024, 9:20:27 AM LOG [RouterExplorer] Mapped {/pusher/auth, POST} route +0ms
2024-01-26 17:20:27 [Nest] 19 - 01/26/2024, 9:20:27 AM LOG [RoutesResolver] CurrencyController {/api/v1/currencies}: +0ms
2024-01-26 17:20:27 [Nest] 19 - 01/26/2024, 9:20:27 AM LOG [RouterExplorer] Mapped {/api/v1/currencies, GET} route +0ms
2024-01-26 17:20:27 [Nest] 19 - 01/26/2024, 9:20:27 AM LOG [RoutesResolver] TradeController {/api/v1/trade}: +0ms
2024-01-26 17:20:27 [Nest] 19 - 01/26/2024, 9:20:27 AM LOG [RoutesResolver] BadgeController {/api/v1/badges}: +1ms
2024-01-26 17:20:27 [Nest] 19 - 01/26/2024, 9:20:27 AM LOG [RouterExplorer] Mapped {/api/v1/badges/:id, GET} route +0ms
2024-01-26 17:20:27 [Nest] 19 - 01/26/2024, 9:20:27 AM LOG [RoutesResolver] WebSocketController {/api/v1/websocket}: +8ms
2024-01-26 17:20:27 [Nest] 19 - 01/26/2024, 9:20:27 AM LOG [RouterExplorer] Mapped {/api/v1/websocket, GET} route +1ms
2024-01-26 17:20:27 [Nest] 19 - 01/26/2024, 9:20:27 AM LOG [RoutesResolver] PublicController {/api/v1/public}: +0ms
2024-01-26 17:20:27 [Nest] 19 - 01/26/2024, 9:20:27 AM LOG [RouterExplorer] Mapped {/api/v1/public/shared/cfd/:id, GET} route +0ms
2024-01-26 17:20:27 [Nest] 19 - 01/26/2024, 9:20:27 AM LOG [RouterExplorer] Mapped {/api/v1/public/reserve, GET} route +0ms
2024-01-26 17:20:27 [Nest] 19 - 01/26/2024, 9:20:27 AM LOG [RouterExplorer] Mapped {/api/v1/public/promotion, GET} route +0ms
2024-01-26 17:20:27 [Nest] 19 - 01/26/2024, 9:20:27 AM LOG [RouterExplorer] Mapped {/api/v1/public/achievement/:id, GET} route +0ms
2024-01-26 17:20:27 [Nest] 19 - 01/26/2024, 9:20:27 AM LOG [RouterExplorer] Mapped {/api/v1/public/leaderboard, GET} route +0ms
2024-01-26 17:20:27 [Nest] 19 - 01/26/2024, 9:20:27 AM LOG [RouterExplorer] Mapped {/api/v1/public/ranking/:id, GET} route +1ms
2024-01-26 17:20:27 [Nest] 19 - 01/26/2024, 9:20:27 AM LOG [RoutesResolver] RankingController {/api/v1/ranking}: +0ms
2024-01-26 17:20:27 [Nest] 19 - 01/26/2024, 9:20:27 AM LOG [RoutesResolver] SyncController {/api/v1/sync}: +0ms
2024-01-26 17:20:27 [Nest] 19 - 01/26/2024, 9:20:27 AM LOG [RoutesResolver] OkxCrawlerController {/api/v1/okx-crawler}: +0ms
2024-01-26 17:20:27 [Nest] 19 - 01/26/2024, 9:20:27 AM LOG [RoutesResolver] CandlestickController {/api/v1/candlesticks}: +0ms
2024-01-26 17:20:27 [Nest] 19 - 01/26/2024, 9:20:27 AM LOG [RouterExplorer] Mapped {/api/v1/candlesticks/:instId, GET} route +0ms
2024-01-26 17:20:27 [Nest] 19 - 01/26/2024, 9:20:27 AM LOG [RoutesResolver] WithdrawController {/api/v1/withdraw}: +0ms
2024-01-26 17:20:27 [Nest] 19 - 01/26/2024, 9:20:27 AM LOG [RouterExplorer] Mapped {/api/v1/withdraw, POST} route +1ms
2024-01-26 17:20:27 [Nest] 19 - 01/26/2024, 9:20:27 AM LOG [RoutesResolver] BalanceSheetController {/api/v1/balance_sheet}: +0ms
2024-01-26 17:20:27 [Nest] 19 - 01/26/2024, 9:20:27 AM LOG [RouterExplorer] Mapped {/api/v1/balance_sheet, GET} route +0ms
2024-01-26 17:20:27 [Nest] 19 - 01/26/2024, 9:20:27 AM LOG [RoutesResolver] BoltTransactionCrawlerController {/api/v1/bolt-transaction-crawler}: +0ms
2024-01-26 17:20:27 [Nest] 19 - 01/26/2024, 9:20:27 AM LOG [RoutesResolver] CashFlowController {/api/v1/cash_flow}: +0ms
2024-01-26 17:20:27 [Nest] 19 - 01/26/2024, 9:20:27 AM LOG [RouterExplorer] Mapped {/api/v1/cash_flow, GET} route +1ms
2024-01-26 17:20:27 [Nest] 19 - 01/26/2024, 9:20:27 AM LOG [RoutesResolver] ComprehensiveIncomeController {/api/v1/comprehensive_income}: +0ms
2024-01-26 17:20:27 [Nest] 19 - 01/26/2024, 9:20:27 AM LOG [RouterExplorer] Mapped {/api/v1/comprehensive_income, GET} route +0ms
2024-01-26 17:20:27 Connected to external WebSocket service
2024-01-26 17:20:28 [Nest] 19 - 01/26/2024, 9:20:28 AM LOG [NestApplication] Nest application successfully started +1234ms
2024-01-26 17:20:44 deleteTrades trades 32
2024-01-26 17:20:44 deleteTrades result { acknowledged: true, deletedCount: 32 }
2024-01-26 17:20:47 deleteTrades trades 32
2024-01-26 17:20:47 deleteTrades result { acknowledged: true, deletedCount: 0 }
2024-01-26 17:20:49 insertTrades error MongoBulkWriteError: E11000 duplicate key error collection: test_tidebit_defi.trades index: instId_1_tradeId_1_source_1 dup key: { instId: "ETH-USDT", tradeId: "346266790", source: "0" }
2024-01-26 17:20:49 at OrderedBulkOperation.handleWriteError (/usr/src/app/node_modules/mongoose/node_modules/mongodb/lib/bulk/common.js:860:22)
2024-01-26 17:20:49 at resultHandler (/usr/src/app/node_modules/mongoose/node_modules/mongodb/lib/bulk/common.js:350:27)
2024-01-26 17:20:49 at /usr/src/app/node_modules/mongoose/node_modules/mongodb/lib/utils.js:297:28
2024-01-26 17:20:49 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
2024-01-26 17:20:49 code: 11000,
2024-01-26 17:20:49 writeErrors: [ { err: [Object], index: 0 } ],
2024-01-26 17:20:49 result: BulkWriteResult {
2024-01-26 17:20:49 insertedCount: 0,
2024-01-26 17:20:49 matchedCount: 0,
2024-01-26 17:20:49 modifiedCount: 0,
2024-01-26 17:20:49 deletedCount: 0,
2024-01-26 17:20:49 upsertedCount: 0,
2024-01-26 17:20:49 upsertedIds: {},
2024-01-26 17:20:49 insertedIds: {}
2024-01-26 17:20:49 },
2024-01-26 17:20:49 insertedDocs: [],
2024-01-26 17:20:49 [Symbol(errorLabels)]: Set(0) {}
2024-01-26 17:20:49 }
2024-01-26 17:20:49 [CandlestickService] groupAuditedTradesToCandlestick, instId: ETH-USDT begin(1706259600000): Fri Jan 26 2024 09:00:00 GMT+0000 (Coordinated Universal Time) end(1706260800000): Fri Jan 26 2024 09:20:00 GMT+0000 (Coordinated Universal Time)
2024-01-26 17:20:49 [CandlestickService] groupAuditedTradesToCandlestick, instId: ETH-USDT candlesticks: 4 candlesticks.ids [
2024-01-26 17:20:49 'ETH-USDT-1706259600000-1706259900000',
2024-01-26 17:20:49 'ETH-USDT-1706259900000-1706260200000',
2024-01-26 17:20:49 'ETH-USDT-1706260200000-1706260500000',
2024-01-26 17:20:49 'ETH-USDT-1706260500000-1706260800000'
2024-01-26 17:20:49 ]
2024-01-26 17:20:49 @_@: [CandlestickService] groupAuditedTradesToCandlestick updateNeededCandlesticks.length: 1 insertNeededCandlesticks.length: 1
2024-01-26 17:20:49 [OkxCrawlerService] audit BTC-USDT
2024-01-26 17:20:49 [CandlestickService] groupAuditedTradesToCandlestick, instId: ETH-USDT begin(1706259600000): Fri Jan 26 2024 09:00:00 GMT+0000 (Coordinated Universal Time) end(1706260800000): Fri Jan 26 2024 09:20:00 GMT+0000 (Coordinated Universal Time)
2024-01-26 17:20:50 [CandlestickService] groupAuditedTradesToCandlestick, instId: ETH-USDT candlesticks: 4 candlesticks.ids [
2024-01-26 17:20:50 'ETH-USDT-1706259600000-1706259900000',
2024-01-26 17:20:50 'ETH-USDT-1706259900000-1706260200000',
2024-01-26 17:20:50 'ETH-USDT-1706260200000-1706260500000',
2024-01-26 17:20:50 'ETH-USDT-1706260500000-1706260800000'
2024-01-26 17:20:50 ]
2024-01-26 17:20:50 @_@: [CandlestickService] groupAuditedTradesToCandlestick updateNeededCandlesticks.length: 0 insertNeededCandlesticks.length: 0
2024-01-26 17:20:50 [OkxCrawlerService] audit BTC-USDT
2024-01-26 17:21:12 deleteTrades trades 24
2024-01-26 17:21:12 deleteTrades result { acknowledged: true, deletedCount: 24 }
2024-01-26 17:21:16 insertTrades error MongoBulkWriteError: E11000 duplicate key error collection: test_tidebit_defi.trades index: instId_1_tradeId_1_source_1 dup key: { instId: "BTC-USDT", tradeId: "478248723", source: "0" }
2024-01-26 17:21:16 at OrderedBulkOperation.handleWriteError (/usr/src/app/node_modules/mongoose/node_modules/mongodb/lib/bulk/common.js:860:22)
2024-01-26 17:21:16 at resultHandler (/usr/src/app/node_modules/mongoose/node_modules/mongodb/lib/bulk/common.js:350:27)
2024-01-26 17:21:16 at /usr/src/app/node_modules/mongoose/node_modules/mongodb/lib/utils.js:297:28
2024-01-26 17:21:16 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
2024-01-26 17:21:16 code: 11000,
2024-01-26 17:21:16 writeErrors: [ { err: [Object], index: 0 } ],
2024-01-26 17:21:16 result: BulkWriteResult {
2024-01-26 17:21:16 insertedCount: 0,
2024-01-26 17:21:16 matchedCount: 0,
2024-01-26 17:21:16 modifiedCount: 0,
2024-01-26 17:21:16 deletedCount: 0,
2024-01-26 17:21:16 upsertedCount: 0,
2024-01-26 17:21:16 upsertedIds: {},
2024-01-26 17:21:16 insertedIds: {}
2024-01-26 17:21:16 },
2024-01-26 17:21:16 insertedDocs: [],
2024-01-26 17:21:16 [Symbol(errorLabels)]: Set(0) {}
2024-01-26 17:21:16 }
2024-01-26 17:21:16 [CandlestickService] groupAuditedTradesToCandlestick, instId: BTC-USDT begin(1706259600000): Fri Jan 26 2024 09:00:00 GMT+0000 (Coordinated Universal Time) end(1706260800000): Fri Jan 26 2024 09:20:00 GMT+0000 (Coordinated Universal Time)
2024-01-26 17:21:16 [CandlestickService] groupAuditedTradesToCandlestick, instId: BTC-USDT candlesticks: 4 candlesticks.ids [
2024-01-26 17:21:16 'BTC-USDT-1706259600000-1706259900000',
2024-01-26 17:21:16 'BTC-USDT-1706259900000-1706260200000',
2024-01-26 17:21:16 'BTC-USDT-1706260200000-1706260500000',
2024-01-26 17:21:16 'BTC-USDT-1706260500000-1706260800000'
2024-01-26 17:21:16 ]
2024-01-26 17:21:16 @_@: [CandlestickService] groupAuditedTradesToCandlestick updateNeededCandlesticks.length: 0 insertNeededCandlesticks.length: 4
2024-01-26 17:21:16 [CandlestickService] groupAuditedTradesToCandlestick, instId: BTC-USDT begin(1706259600000): Fri Jan 26 2024 09:00:00 GMT+0000 (Coordinated Universal Time) end(1706260800000): Fri Jan 26 2024 09:20:00 GMT+0000 (Coordinated Universal Time)
2024-01-26 17:21:16 [CandlestickService] groupAuditedTradesToCandlestick, instId: BTC-USDT candlesticks: 4 candlesticks.ids [
2024-01-26 17:21:16 'BTC-USDT-1706259600000-1706259900000',
2024-01-26 17:21:16 'BTC-USDT-1706259900000-1706260200000',
2024-01-26 17:21:16 'BTC-USDT-1706260200000-1706260500000',
2024-01-26 17:21:16 'BTC-USDT-1706260500000-1706260800000'
2024-01-26 17:21:16 ]
2024-01-26 17:21:16 @_@: [CandlestickService] groupAuditedTradesToCandlestick updateNeededCandlesticks.length: 0 insertNeededCandlesticks.length: 0
2024-01-26 17:21:29 insertCandlestick error MongoServerError: E11000 duplicate key error collection: test_tidebit_defi.candlesticks index: _id_ dup key: { _id: "ETH-USDT-1706260500000-1706260800000" }
2024-01-26 17:21:29 at /usr/src/app/node_modules/mongoose/node_modules/mongodb/lib/operations/insert.js:50:33
2024-01-26 17:21:29 at /usr/src/app/node_modules/mongoose/node_modules/mongodb/lib/operations/command.js:84:64
2024-01-26 17:21:29 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
2024-01-26 17:21:29 index: 0,
2024-01-26 17:21:29 code: 11000,
2024-01-26 17:21:29 keyPattern: { _id: 1 },
2024-01-26 17:21:29 keyValue: { _id: 'ETH-USDT-1706260500000-1706260800000' },
2024-01-26 17:21:29 [Symbol(errorLabels)]: Set(0) {}
2024-01-26 17:21:29 }
taking 5 hrs