Commit Graph

234 Commits

Author SHA1 Message Date
Geoff Taylor d49294f2cd download-trades now takes a --most-recent-hours parameter. 2021-12-16 17:43:48 +00:00
Geoff Taylor c6900afebf Fixed decimal issues with ADA, BNB and AVAX. 2021-12-15 18:15:26 +00:00
Geoff Taylor 34cbd6370a Downloading trades now tracks change to balance instead of value. 2021-12-13 13:49:54 +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 c749df08d6 Fixed bug in show-account-balances that duplicated wallet USDC listing. 2021-12-01 09:26:38 +00:00
Geoff Taylor a81fe68355 Improved TradeHistory - now uses Decimal for fractional numbers, and can load all or update an existing CSV file. 2021-11-30 13:48:27 +00:00
Geoff Taylor 57a1d2e0e6 Start of work on downloading trades to CSV. 2021-11-26 13:29:21 +00:00
Geoff Taylor 3dceb8e544 Updated client for new parameter to pyserum's get_confirmed_signature_for_address2(). 2021-11-25 16:28:30 +00:00
Geoff Taylor d2a9946918 Added some experimental JSON output for feedback. 2021-11-19 17:36:25 +00:00
Geoff Taylor 06bd490652 Updated OpenOrders commands to take an arbitrary account address instead of always using the wallet. 2021-11-18 09:14:06 +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 d7ce30330b Fixed problem accessing USDC in show-account-balances. 2021-11-13 12:29:47 +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 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 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 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 6411cf9822 Added show-transaction-logs to show logs and decode mango-log entries if necessary. 2021-10-19 17:56:11 +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 3587ce1b26 Made mango-explorer a pip-installable package. 2021-10-11 17:08:54 +01:00
Geoff Taylor 8257902003 Removed use of pyston in commands. 2021-10-08 18:15:40 +01:00
Geoff Taylor 9be532714f Fixed problem with send-token command if address wasn't root wallet. 2021-10-08 17:29:06 +01:00
Geoff Taylor 64817c739a Improved perp-to-spot hedging, added documentation on hedging. 2021-10-06 15:39: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 6306e1e65a Improved model state and marketoperations. Some work on hedging. 2021-09-30 18:53:33 +01:00
Geoff Taylor 0600450f01 Better debug output of context and arguments. 2021-09-30 08:54:12 +01:00
Geoff Taylor 58135ea101 Added a show-liquidity-mining-info command to display liquidity mining details. 2021-09-23 12:30:59 +01:00
Geoff Taylor aacc318606 Now pass Account to TradeExecutor. 2021-09-21 18:49:51 +01:00
Geoff Taylor 8b1ebc13e8 Fixed problem with watch-minimum-balances spamming notifications. 2021-09-21 16:08:46 +01:00
Geoff Taylor 3ac729ac5c Updated show-token-balance to work with any wallet address and mint. 2021-09-16 17:40:19 +01:00
Geoff Taylor 7c17f5cbc4 Added --log-suppress-timestamp parameter. Centralised much CLI argument handling. 2021-09-13 14:05:19 +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 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 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