Commit Graph

71 Commits

Author SHA1 Message Date
Geoff Taylor 39fe1a4d24 Fixed incorrect parameter ordering in building TokenAccount. 2021-05-17 12:36:46 +01:00
Geoff Taylor ff804204a7 Added a common base class for addressable account objects. 2021-05-17 12:04:17 +01:00
Geoff Taylor e8668b60cf Fixed building of PartialLiquidate instruction. 2021-05-15 14:46:26 +01:00
Geoff Taylor 02e272e437 Expanded TransactionScout and added new command - report-transactions. 2021-05-15 14:17:42 +01:00
Geoff Taylor 5aa134b767 Fixed dictionary dereference in loading a TokenAccount. 2021-05-14 16:19:35 +01:00
Geoff Taylor c0070c2b94 Moved AccountInfo into BaseModel, moved 'fetch' methods to appropriate objects. 2021-05-14 15:51:29 +01:00
Geoff Taylor 5295121efe Added a transaction-scout command. 2021-05-14 12:32:39 +01:00
Geoff Taylor 7f980a8b2e Started adding some Observables code to help with common streaming and polling tasks. 2021-05-14 12:24:35 +01:00
Geoff Taylor f79315201d Added TransactionScout to show Mango transaction details. 2021-05-13 20:32:23 +01:00
Geoff Taylor 414a5f445b No longer submits a PartialLiquidate if there are zero tokens to fund the liquidation. 2021-05-13 12:29:23 +01:00
Geoff Taylor ad3f409404 Fixed bug in TradeExecutor - 'group' is an object member. 2021-05-13 08:15:51 +01:00
Geoff Taylor 45d1599286 Fixed type in description text. 2021-05-12 15:02:18 +01:00
Geoff Taylor 6d80b4e809 Updated Quickstart to reflect new log message. 2021-05-12 11:14:32 +01:00
Geoff Taylor 9b8ad18f10 Updated PollingLiquidator loop message to clarify looping. 2021-05-12 11:10:34 +01:00
Geoff Taylor fb308c6205 Updated README. 2021-05-12 10:59:59 +01:00
Geoff Taylor 0d9635ba45 PollingLiquidator optimisation - now loops and updates ripe 🥭 accounts. 2021-05-12 10:52:26 +01:00
Geoff Taylor b8e47792f8 Added a simple search script for dev code searches. 2021-05-12 09:14:10 +01:00
Geoff Taylor a40b962965 Fixed dereference of group basket tokens. 2021-05-11 20:32:20 +01:00
Geoff Taylor 9b97722394 Fixed regression in importing notebook code. 2021-05-11 20:17:49 +01:00
Geoff Taylor ef6b2b4da5 Fixed divisor bug in FloatAdapter. 2021-05-11 20:13:07 +01:00
Geoff Taylor 4cfc87d420 Split BasketTokenMetadata up. Improved linting.
* Split BasketTokenMetadata into BasketToken and Token.
* Improved linting and mypy so it worked across files.
2021-05-11 19:24:02 +01:00
Geoff Taylor f56ba03f3e Fixed bug in calling wallet balancer after a successful liquidation. 2021-05-10 18:56:35 +01:00
Geoff Taylor ff80a085da Clarified details of FloatAdapter (renamed from Float64Adapter) after information from Daffy on Discord. 2021-05-10 17:36:14 +01:00
Geoff Taylor 78fbb05970 Renamed SimpleLiquidator to PollingLiquidator. 2021-05-10 14:48:19 +01:00
Geoff Taylor 64b14600f7 Merged run-lint and run-mypy. Command is now just run-lint. 2021-05-10 14:46:37 +01:00
Geoff Taylor fb52fe3671 Tidied up reporting of balances before and after a liquidation. 2021-05-10 14:20:08 +01:00
Geoff Taylor b452887c28 Changed logging to use emoji for level and shorter datetime. Updated logs in Quickstart to reflect this. 2021-05-09 18:23:38 +01:00
Geoff Taylor b398990898 Added a Quickstart! A nice walkthrough of setting up a liquidator. 2021-05-08 16:01:30 +01:00
Geoff Taylor db91e1d9d8 Added a 'create-wallet' command, made other commands more consistent. 2021-05-07 10:47:01 +01:00
Geoff Taylor 0f05be4fc7 Added Pyston link to README. 2021-05-06 19:12:24 +01:00
Geoff Taylor 013a8ce715 Added Pyston to docker image and commands.
All commands now use Pyston instead of Python as the Python interpreter. It seems a bit faster.
2021-05-06 19:06:47 +01:00
Geoff Taylor a774998409 Fixed problem with instantiating NullAccountLiquidator. 2021-05-06 19:00:54 +01:00
Geoff Taylor fab0d909c2 Added 'dry run' option to commands that perform transactions. 2021-05-06 15:27:25 +01:00
Geoff Taylor 3db09e922c Added wallet balancing. Big changes throughout to support this. 2021-05-06 14:21:40 +01:00
Geoff Taylor f2d4e7c13f Added Serum trading.
* Added nasty patch around pyserum bug
* OpenOrders can now provide (on-demand) the pyserum representation OpenOrdersAccount
* New context methods -unwrap_transaction_id_or_raise_exception() and random_client_id()
* Added Retrier and retry_context() function
* Added TradeExecutor and SerumImmediateTradeExecutor classes to trade on Serum
2021-05-04 17:18:09 +01:00
Geoff Taylor 9ff7619985 Fixed problem with logging messages and token dereference. 2021-05-02 14:36:16 +01:00
Geoff Taylor 9881f5f3dc Removed debug cell from Liquidation notebook. 2021-05-01 10:17:23 +01:00
Geoff Taylor 70ddb1a364 Added timestamp to logging. 2021-04-30 15:20:59 +01:00
Geoff Taylor 6083eca622 Fixed linting problems with RPCErrors. 2021-04-29 17:20:46 +01:00
Geoff Taylor 9ae606b1c6 Commands now output the AccountScout report to show errors and warnings. 2021-04-29 16:33:04 +01:00
Geoff Taylor 8198d0bd60 Now checks for Serum OpenOrders accounts in AccountScout, but they're not mandatory. Margin account is also detailed but no longer mandatory. 2021-04-29 15:51:36 +01:00
Geoff Taylor 5bf67573ab Fixed some script issues. 2021-04-29 14:23:05 +01:00
Geoff Taylor 9db61efaf5 mango-fetch can now fetch all margin accounts for a user. 2021-04-29 12:51:13 +01:00
Geoff Taylor feda91156b Fixed problem where OpenOrders could show the wrong program ID in some circumstances. 2021-04-29 12:11:28 +01:00
Geoff Taylor c5734a0624 Moved development commands to 'scripts', so 'bin' is for actual commands.
* Added log level as parameter to commands.
2021-04-29 10:53:01 +01:00
Geoff Taylor f8738770f5 Expanded liquidation process and steps. 2021-04-28 18:36:48 +01:00
Geoff Taylor 1370e924f3 Added AccountLiquidator page and classes, separated out from Liquidation page. 2021-04-27 12:02:05 +01:00
Geoff Taylor 4f6890fe1c Added argument parsing to liquidator command. 2021-04-27 10:53:43 +01:00
Geoff Taylor acf2ff5da6 Renamed Classes.ipynb to BaseModel.ipynb. Adjusted all imports of it. 2021-04-27 09:41:22 +01:00
Geoff Taylor 482f759b11 Added start of a runnable 'liquidator' command. 2021-04-26 17:09:35 +01:00