Commit Graph

121 Commits

Author SHA1 Message Date
Geoff Taylor 66f996ec47 Updated solana.tokenlist.json. Some tokens had symbols changed (why?) so "ETH" pointed to a different mint address. Added overrides.tokenlist.json so we can still use a pure copy of solana.tokenlist.json but can override certain symbols to behave the way we expect. 2021-12-15 16:03:31 +00:00
Geoff Taylor e0efa927e3 Added CompoundClientException to provide more detail when all providers fail. 2021-12-15 12:24:23 +00:00
Geoff Taylor 62b0332439 Removed Unicode monospaced-font rendering of class names because VSCode has started being annoying about it all. (Boo...) 2021-12-13 12:06:42 +00:00
Geoff Taylor bc20564e0b Explicitly made loggers protected instead of public. 2021-12-13 11:15:24 +00:00
Geoff Taylor 23b2d18689 Fixed problem rounding lot sizes. 2021-12-05 19:07:21 +00:00
Geoff Taylor f7273555c8 Better handling of BlockhashNotFound exception with multiple providers. 2021-12-05 17:57:19 +00:00
Geoff Taylor 1f32899f32 Experimental ability to take multiple cluster URLs and fail over from one to the next on slot errors. 2021-12-05 16:38:49 +00:00
Geoff Taylor 1f865285c1 Trying a new approach to tackle stale data coming back from the RPC server. 2021-12-04 13:56:16 +00:00
Geoff Taylor cbedb3d84c Simpler, clearer approach to connection error handling. 2021-12-01 16:14:30 +00:00
Geoff Taylor 1438b28752 Updated ids.json for new devnet market. 2021-11-30 17:14:59 +00:00
Geoff Taylor 9fdcc21bc0 Added ways to get pandas DataFrames from OrderBooks for some L1, L2 and L3 data. 2021-11-26 17:40:31 +00:00
Geoff Taylor 95effd6521 Added BiasQuantityOnPositionElement. 2021-11-22 16:31:52 +00:00
Geoff Taylor 81a63e1974 RoundToLotSizeElement now removes orders where the price or quantity rounds to zero. 2021-11-22 14:38:29 +00:00
Geoff Taylor e3f1939287 Added MaximumQuantityElement and MinimumQuantityElement. 2021-11-18 12:51:57 +00:00
Geoff Taylor f8db78a630 Added a TopOfBookElement to the marketmaker. 2021-11-17 18:45:57 +00:00
Geoff Taylor 5f7bd3c04c Added interest rate calculations. Moved TokenInfo to TokenBank. 2021-11-13 19:23:11 +00:00
Geoff Taylor 88cb2fcdd4 Refactored Group and Account to remove requirement for Group to load all Root Banks. 2021-11-11 11:56:29 +00:00
Geoff Taylor 393ff6a899 Added unit tests for slot accessors in Group and Account. 2021-11-10 17:46:54 +00:00
Geoff Taylor 3f4ec995f0 Group and Account slots now contain their own matching indices. 2021-11-09 21:08:06 +00:00
Geoff Taylor 01cfae7fa4 Fixed problems with redeem-mango 2021-11-09 19:54:50 +00:00
Geoff Taylor d15e953ae7 Refactor of code to work with mypy --strict 2021-11-09 13:23:36 +00:00
Geoff Taylor 199c39130d Moved to having Instrument as a basis for Token, to allow for perp markets with no underlying SPL token. 2021-11-08 11:39:09 +00:00
Geoff Taylor ffd563e4b2 Fixed some warnings from tests. 2021-11-04 15:55:08 +00:00
Geoff Taylor 05a9f57dcf Removed unused import. 2021-11-04 15:44:17 +00:00
Geoff Taylor 4a24f3df55 Some fixes for health calculations WIP. 2021-11-04 15:36:14 +00:00
Geoff Taylor a41a63da14 Fixes to allow a perp market with no spot market. 2021-11-01 18:41:31 +00:00
Geoff Taylor 27c5e676f3 Refactored notifications. 2021-10-28 12:19:18 +01:00
Geoff Taylor 56599a1037 Added OrderBook instead of passing around bids and asks. Added it to ModelState too, and cleaned up usage. 2021-10-26 18:45:04 +01:00
Geoff Taylor c2615218e3 Made more marketmaker Elements work with order 'levels' and take multiple values for different levels. 2021-10-24 16:09:07 +01:00
Geoff Taylor c17d04152b FixedPositionSizeElement can now take multiple fixed position sizes and properly apply them. 2021-10-23 13:44:30 +01:00
Geoff Taylor ca1c114371 Updated AfterAccumulatedDepthElement to take depth and adjustment parameters. 2021-10-22 15:31:31 +01:00
Geoff Taylor 7f300f6ee0 Added more debug information for MinimumChargeElement. 2021-10-21 19:57:01 +01:00
Geoff Taylor 84173b65c9 Added some basic IDL parsing so code can expand log messages with events. 2021-10-15 20:37:43 +01:00
Geoff Taylor 5200add28f Added BiasQuoteElement as possible marketmaker chain element. 2021-10-15 14:21:54 +01:00
Geoff Taylor f3f2c141b3 Another attempt at getting agreement on date timezones in github action. 2021-10-14 11:58:45 +01:00
Geoff Taylor a1f850c341 Fixed UTC issue in test. 2021-10-14 11:49:07 +01:00
Geoff Taylor b46d6bd0d2 Added QuoteSingleSideElement for marketmaker. 2021-10-14 09:42:09 +01:00
Geoff Taylor 3587ce1b26 Made mango-explorer a pip-installable package. 2021-10-11 17:08:54 +01:00
Geoff Taylor defbfd8c89 Cleaned up OrderChain Element construction. 2021-10-08 19:55:38 +01:00
Geoff Taylor 19f6a79d52 Added ability of ratios and minimumcharge elements to work with bid+ask instead of mid price. 2021-10-05 20:43:56 +01:00
Geoff Taylor a02f8f54aa Added simple RootBank parsing tests. 2021-10-05 10:47:41 +01:00
Geoff Taylor 3ccca8bd01 Start of work on account calculations. 2021-10-04 18:27:07 +01:00
Geoff Taylor 26aabd23e9 Simplified and improved marketmaker hedging. 2021-10-02 12:28:16 +01:00
Geoff Taylor 90dd111c95 Fixed problem calculating top bid. 2021-09-29 18:59:28 +01:00
Geoff Taylor 66e137e726 Fixed bug where PreventPostOnlyCrossingBookElement wouldn't change orders if there wasn't both a top bid and a top ask. 2021-09-29 18:03:25 +01:00
Geoff Taylor 71ecc5faef Fixed minimumcharge to correctly handle bids/asks that cross the mid-price. Re-ordered default chain so that minimumcharge is enforced before biasing. 2021-09-22 17:30:29 +01:00
Geoff Taylor 43be1fa192 Can now use a separate commitment for fetching the recent blockhash. 2021-09-16 15:36:52 +01:00
Geoff Taylor 9f74952444 Added --encoding parameter. 2021-09-15 19:27:07 +01:00
Geoff Taylor 4310cc7e2a Brought V2 changes to get_multiple_accounts() across to V3. 2021-09-13 12:17:19 +01:00
Geoff Taylor fe6af5f2b3 Fixed problem with lot size conversion and rounding. 2021-09-09 17:17:23 +01:00