Commit Graph

212 Commits

Author SHA1 Message Date
Geoff Taylor 2a424aa2d1 Added sweep command to sell all tokens in a market. 2021-09-02 18:51:43 +01:00
Geoff Taylor 8624afabdc Replaced command switch --account-index with --account-address because of inconsistent results when fetching multiple accounts - they could come back with different indices. 2021-09-02 17:19:17 +01:00
Geoff Taylor 71ba03935f Added send_transaction response to debug log. 2021-09-02 15:23:53 +01:00
Geoff Taylor 652296856b Added some logging to head elements of orderchain. 2021-09-02 13:30:53 +01:00
Geoff Taylor 1d4e24ea38 ModelState now tracks current orders on the orderbook directly, rather than using OpenOrders. 2021-09-02 13:11:35 +01:00
Geoff Taylor 39c591fc6f Made order chain more configurable, added MarketmakingOrderChain to docs. 2021-09-02 12:01:41 +01:00
Geoff Taylor d7b36c355c Now uses a fresh ThreadPoolScheduler every time instead of one per Context. 2021-09-02 08:30:06 +01:00
Geoff Taylor 86f7933bcb Fixed problem calculating the proper tick under/over the top orderbook prices. 2021-09-01 18:33:38 +01:00
Geoff Taylor 75d24ff367 Fixed airdrop command in quickstart. 2021-09-01 09:25:33 +01:00
Geoff Taylor 38ff5e2fcd Added context name to Pyth exceptions. 2021-08-31 15:09:58 +01:00
Geoff Taylor dcd1ccce5b show-address can now handle a RootBank. 2021-08-31 14:31:47 +01:00
Geoff Taylor b57ef58d63 Added a RoundToLotSizeElement element to marketmaker chain. 2021-08-31 12:36:23 +01:00
Geoff Taylor befb86bcfb watch-minimum-balances now uses a single websocket for all accounts (again). 2021-08-31 10:55:06 +01:00
Geoff Taylor 9111294f2d Added request/response data to TransactionException. 2021-08-31 10:40:05 +01:00
Geoff Taylor 8bf6384076 Added CollateralCalculator to calculate collateral in different market types. 2021-08-31 00:30:22 +01:00
Geoff Taylor bf7dc95a9d Merging V3 branch into main. 2021-08-30 15:42:11 +01:00
Geoff Taylor 126cb4e288 Added airdrop command to interact with faucets. Removed requirement to use Sollet from MarketmakingQuickstart. 2021-08-30 11:33:44 +01:00
Geoff Taylor 9159d615c4 Updated dependencies and fixed subsequent issues. 2021-08-27 20:37:23 +01:00
Geoff Taylor ad86430638 Fixed bug in Serum lot size conversions. 2021-08-26 18:23:09 +01:00
Geoff Taylor e670611722 Fixed forcing to mainnet/devnet. 2021-08-26 18:03:42 +01:00
Geoff Taylor 352f4ea65f Removed percentage target balances because of the unexpected frequent rebalancing they could cause. 2021-08-26 16:29:00 +01:00
Geoff Taylor 03f385043b Backported BetterClient from V3 and prefer its return values to the regular Client's. 2021-08-26 15:48:25 +01:00
Geoff Taylor 20672e17d1 Marketmaker now automatically redeems MNGO on pulse. 2021-08-26 14:01:57 +01:00
Geoff Taylor 09bdfe3b9f Better identification of TokenLookup instances. 2021-08-26 13:43:23 +01:00
Geoff Taylor 261848f325 Big renaming of Context properties to make them more consistent and appropriate. 2021-08-26 10:31:02 +01:00
Geoff Taylor b89a072cdd Moved not_quoting to model_state (where external components and orderchain elements can both access it). Added a state bag to model_state too. 2021-08-26 09:19:51 +01:00
dd d888fe010c Merge remote-tracking branch 'origin/v3' into v3 2021-08-25 16:41:33 -04:00
dd 958dd87d1c fixed bug in preventpostonlycrossingbookelement.py where bid was being compared against best bid. Now compares against best ask 2021-08-25 16:41:28 -04:00
Geoff Taylor 8debc3238a Added simple flag for marketmaker to prevent quoting. 2021-08-25 20:57:57 +01:00
Geoff Taylor 6bfbe40c84 Fixed problem calculating spread in model. 2021-08-25 17:12:39 +01:00
Geoff Taylor 8c8ebdc7ae Merge branch 'v3' of https://github.com/blockworks-foundation/mango-explorer into v3 2021-08-25 17:09:03 +01:00
Geoff Taylor d151e0ce8f Updated to latest devnet ids.json. Fixed some context configuration problems. 2021-08-25 17:06:00 +01:00
dd 05d78ea0b0 top_ask and top_bid now return None if book is empty. 2021-08-25 10:20:53 -04:00
Geoff Taylor ce37e835a2 Added ModelStateBuilder and ability to poll RPC methods in marketmaker instead of relying on websockets. 2021-08-24 20:13:44 +01:00
Geoff Taylor fc1957d9b2 Added bias tests. 2021-08-23 17:35:09 +01:00
Geoff Taylor a8dd489601 Added a nicer log mess when biasing marketmaker orders. 2021-08-23 15:55:10 +01:00
Geoff Taylor 59ba4894f1 Moved hedger to its own class, and re-used it as an option in marketmaker. 2021-08-23 15:36:55 +01:00
Geoff Taylor 3419c89033 Moved marketmaker to an 'orderchain' model. 2021-08-22 19:48:20 +01:00
Geoff Taylor b56d114a4a Added bids and asks to marketmaker ModelState, with watchers for latest state. 2021-08-21 22:06:58 +01:00
Geoff Taylor 191d3e644c Anything imported from pyserum should now be imported as a PySerumXYZ to avoid confusion with Mango Explorer classes. 2021-08-21 18:24:53 +01:00
Geoff Taylor 8a83c73ea8 Now run websocket connections each in their own websocket rather than using a shared one. (Shared websocket is still an option though.) 2021-08-21 16:03:13 +01:00
Geoff Taylor 153ebae2f4 Moved opening of websocket to be entirely within WebSocketSubscriptionManager. 2021-08-21 13:25:28 +01:00
Geoff Taylor 1696ead1e3 Added --quote-position-bias parameter to marketmaker. 2021-08-21 00:00:34 +01:00
Geoff Taylor f0e8738b04 Removed SPL token lookups from SpotMarketInstructionBuilder. 2021-08-19 23:32:58 +01:00
Geoff Taylor 46c768e11b Fixed loading of some context parameters. 2021-08-19 22:59:36 +01:00
Geoff Taylor 5a76874466 Updated for new group. 2021-08-19 22:23:19 +01:00
Geoff Taylor 66ccdcf63e Changed confidence_weighting in marketmaker to confidence_interval_levels. Multiple levels can now be specified, creating multiple levels of orders. 2021-08-19 17:31:17 +01:00
Geoff Taylor ec37c14d03 Added ensure-account and ensure-open-orders commands. 2021-08-19 11:00:39 +01:00
Geoff Taylor a96b67e729 Improved transaction exception reporting. 2021-08-19 09:46:54 +01:00
Geoff Taylor a51b38049b Marketmaker no longer masks errors. 2021-08-18 14:49:54 +01:00