Commit Graph

301 Commits

Author SHA1 Message Date
Geoff Taylor c837b21e7e Fixed use of version command in docker. 2021-11-16 18:58:57 +00:00
Geoff Taylor 4b517bd614 Trying to improve visibility of version information. 2021-11-16 18:01:44 +00:00
Geoff Taylor e171b57445 Initial work on show-funding-rates. 2021-11-15 20:39:29 +00:00
Geoff Taylor 5f7bd3c04c Added interest rate calculations. Moved TokenInfo to TokenBank. 2021-11-13 19:23:11 +00:00
Geoff Taylor dce252ee1f Fixed problem depositing and withdrawing shared quote token. 2021-11-12 19:31:24 +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 4b3c1eecd9 Fixed problem accessing quote root bank. 2021-11-09 21:21:13 +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 e2d0853d3f Fixed problem finding market index by instrument. 2021-11-09 20:15:43 +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 0970028232 Fixed TokenInfo's use of Instrument. 2021-11-08 12:56:07 +00:00
Geoff Taylor e69e60b3ed Refactored MarketOperations and MarketInstructionBuilder. 2021-11-08 12:43:11 +00:00
Geoff Taylor 01e121ad49 Refactored SpotMarketInfo and PerpMarketInfo. 2021-11-08 11:54:50 +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 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 b06bf591da Start of work on more user-friendly account valuation. 2021-11-01 16:16:54 +00:00
Geoff Taylor 27c5e676f3 Refactored notifications. 2021-10-28 12:19:18 +01:00
Geoff Taylor 500cff9632 Fixed PerpMarketDetails behaviour when there is no liquidity mining ongoing. 2021-10-28 11:54:29 +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 efbc3fb28e Added some debug lines to clarify a canking problem. 2021-10-23 17:40:16 +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 e32e5043cf Fixed problem with SOL collateral calculations. 2021-10-21 20:18:57 +01:00
Geoff Taylor 7f300f6ee0 Added more debug information for MinimumChargeElement. 2021-10-21 19:57:01 +01:00
Geoff Taylor 6bbf30d271 Added NodeBank to accountconverter so show-address will work with it. 2021-10-19 17:55:47 +01:00
Geoff Taylor 57b7e4e99c Cleaned up call to PLACE_SPOT_ORDER_2 using fee discount address. 2021-10-19 14:17:55 +01:00
Geoff Taylor 4bcabbffa6 Fixed problem with importing mango package preventing successful running of logging.basicConfig() after. 2021-10-19 12:28:54 +01:00
Geoff Taylor c578892bd2 Fixed problem with estimated end time of period in liquidity mining info. 2021-10-18 16:40:41 +01:00
Geoff Taylor c7090bfb95 Fixed UTC timezone issue in PerpMarketDetails. 2021-10-16 12:50:10 +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 69f2fd49d6 Added --hedging-target-balance parameter to marketmaker. 2021-10-15 17:27:09 +01:00
Geoff Taylor 92c09a0a1b Fixed perp placement of POST_ONLY_SLIDE orders. 2021-10-15 15:27:03 +01:00
Geoff Taylor 6aa28b0897 Added POST_ONLY_SLIDE order type. 2021-10-15 14:34:32 +01:00
Geoff Taylor 5200add28f Added BiasQuoteElement as possible marketmaker chain element. 2021-10-15 14:21:54 +01:00
Geoff Taylor eb356f42cd Dates loaded from Mango datafiles are always UTC. 2021-10-14 11:55:45 +01:00
Geoff Taylor b46d6bd0d2 Added QuoteSingleSideElement for marketmaker. 2021-10-14 09:42:09 +01:00
Geoff Taylor 22952d9ffb Now call PLACE_SPOT_ORDER_2 instead of PLACE_SPOT_ORDER. 2021-10-13 18:42:15 +01:00
Geoff Taylor 6bdafd8805 Fixed warning on possibly-missing fee discount address. 2021-10-12 15:58:52 +01:00
Geoff Taylor 5cdb3ab9a7
Merge pull request #7 from nathan7432/main
specify encoding as utf-8 when reading json files
2021-10-12 15:37:21 +01:00
Nathan Pirhalla ad9dd78c1a specify encoding as utf-8 2021-10-12 09:53:54 -04:00
Geoff Taylor f6f1f0bc1a Added devnet MSRM details. Fixed passing of MSRM vault if it's being used. 2021-10-12 11:22:32 +01:00
Nathan Pirhalla fe6c208607 fix error when opening json file 2021-10-11 14:39:03 -04: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 8257902003 Removed use of pyston in commands. 2021-10-08 18:15:40 +01:00
Geoff Taylor 1e3ed32fe4 Fixed data file handling to allow Nuitka compilation. 2021-10-08 17:30:20 +01:00