Commit Graph

454 Commits

Author SHA1 Message Date
Geoff Taylor ce25003a2c Added caching to get_recent_blockhash(). 2021-09-07 21:12:37 +01:00
Geoff Taylor e6eaeaeed1 Now use a monotonic time (in milliseconds, with collision avoidance) for client IDs to help with some other systems. 2021-09-07 19:07:22 +01:00
Geoff Taylor 75be37fbd9 Repurposed 'sweep' as a more general 'balance-account' command. Moved 'group-balance-wallet' to just 'balance-wallet' to be similar in concept. 2021-09-07 18:40:34 +01:00
Geoff Taylor b4406a13d9 sweep command now takes a target balance. 2021-09-06 21:38:12 +01:00
Geoff Taylor 0297fda92c Fixed failing FixedSpread tests. 2021-09-06 19:27:40 +01:00
Geoff Taylor 53207d1d98 FTX oracle no longer tries to interfere with PERP market names. 2021-09-06 19:26:45 +01:00
Geoff Taylor 1f5a3cf4bb Fixed typo in OrderChain documentation. 2021-09-06 18:31:58 +01:00
Geoff Taylor 920ac364af Fixed incorrect error message in argument exception. 2021-09-06 18:21:38 +01:00
Geoff Taylor f4af4960d7 Added new OrderChain elements. Removed Serum oracle and added Market oracle (which includes Serum oracle functionality plus more). Expanded chain documentation and added oracle documentation. 2021-09-06 17:07:26 +01:00
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 46b02bf3d2 Fixed type in Quickstart. 2021-08-31 19:37:44 +01:00
Geoff Taylor 5053cb387f Changed URL for V3 devnet. 2021-08-31 19:02:50 +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 0f2596a4ce Updated Quickstart with correct faucet address: B87AhxX6BkBsj3hnyHzcerX2WxPoACC7ZyDr8E7H9geN. 2021-08-30 20:21:26 +01:00
Geoff Taylor b3bc928121 Updated README now that V3 code is in main. 2021-08-30 15:52:34 +01:00
Geoff Taylor bf7dc95a9d Merging V3 branch into main. 2021-08-30 15:42:11 +01:00
Geoff Taylor 2206482a93 Better output for cancel-my-orders command. 2021-08-30 13:43:41 +01:00
Geoff Taylor 45d59f4a96 Updated file-age-check to take multiple files. 2021-08-30 12:27:47 +01:00
Geoff Taylor 4dcea1c3fa Fixed problem handling exceptions in marketmaker pulse observable. 2021-08-30 11:41:30 +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 1e01791a5e Fixed problem cleaning up on marketmaker starting and stopping. 2021-08-28 18:57:41 +01:00
Geoff Taylor 97c83518bb Updated Marketmaker Quickstart to allow running docker as root or non-root. 2021-08-28 18:13:48 +01:00
Geoff Taylor 1d8b2d4f2e Updated Marketmaker Quickstart to use ensure-account instead of init-account. 2021-08-28 12:13:03 +01:00
Geoff Taylor c7399a11d2 Added Marketmaking Quickstart. 2021-08-27 20:37:41 +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 ed50880ef8 Gave Quickstart an overdue (but incomplete) update. 2021-08-26 16:58:33 +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 f3f923ac6a Changed marketmaker default update mode to POLL (from WEBSOCKET). 2021-08-26 14:04:04 +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