forked from thrasher-corp/gocryptotrader
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
engine/order manager: Initial REST managed order updating (resolves t…
…hrasher-corp#772) (thrasher-corp#775) * Initial REST managed order updating * Apply gloriousCode's changes.go patch * Update internal order ID handling * Check error * Replace string with string pointer * Avoid nil pointers in upsert * Update test for UpdateOrderFromDetail() * Add tests for orders.go * Remove unnecessary newline * Address comments * Add missing nil check * Add tests for new functions in order_manager.go * Remove empty line * Change log level for updates from Info to Debug (keep added orders at Info) * Initialize orders before running the timer * [TEMP] Add verbosity for debugging * Nil checking on exchangeManager in GetExchanges() - exchangeManager.GetExchanges() and iExchangeManager.GetExchanges() return an error on nil - bot.GetExchanges() wraps exchangeManager.GetExchanges() and returns an empty slice * Revert thrasher-corp@b5afe1a * Do not start the order manager runner thread Instead, mark the order manager as running * Remove redundant error.Is() and remove print wrapper on msg * Add atomic blocker and waitgroup on processOrders() * Disable unnecessary orderManager runner thread for rpcserver_test * Remove redundant err from orderStore.getActiveOrders() * [FIX] Populate requiresProcessing using UpsertResponse data instead of REST return data .. because the data returned by the REST calls do not include the internal user ID's * [TEST] Verify that processOrders() actually processes queried order data * Remove leftover warning and add nil check on wg.Done() * Apply suggestions from code review Log category changes - as suggested Co-authored-by: Adrian Gallagher <[email protected]> * Return when no exchanges available Co-authored-by: Adrian Gallagher <[email protected]>
- Loading branch information
Showing
17 changed files
with
833 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.