Geoff Taylor
cbedb3d84c
Simpler, clearer approach to connection error handling.
2021-12-01 16:14:30 +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
eb356f42cd
Dates loaded from Mango datafiles are always UTC.
2021-10-14 11:55:45 +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
3ccca8bd01
Start of work on account calculations.
2021-10-04 18:27:07 +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
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
261848f325
Big renaming of Context properties to make them more consistent and appropriate.
2021-08-26 10:31:02 +01:00
Geoff Taylor
97a5c41a39
Updated to latest group structures and IDs.
2021-08-17 19:42:11 +01:00
Geoff Taylor
97bd857418
Updated to handle new event queue format.
2021-08-13 20:17:17 +01:00
Geoff Taylor
3403555036
Added account name/info to output.
2021-08-13 12:15:17 +01:00
Geoff Taylor
162f41e2d0
Added a redeem-mango command.
2021-08-11 19:14:26 +01:00
Geoff Taylor
7033a080bf
Better logging of failing instructions.
2021-08-04 17:50:38 +01:00
Geoff Taylor
efd24060a8
Added stub oracle code and cache loading.
2021-07-30 20:31:17 +01:00
Geoff Taylor
5b6d5f2291
Upgraded to new, better devnet group.
2021-07-29 12:38:34 +01:00
Geoff Taylor
072252095a
Some work on streaming logs and account/program events.
2021-07-26 12:19:13 +01:00
Geoff Taylor
8fe48de527
Moved functionality into *Market objects.
2021-07-23 10:20:44 +01:00
Geoff Taylor
c953ec07fc
Added Perp cranking code, plus program. Expanded watch-address, added complementary show-address command.
2021-07-22 15:18:37 +01:00
Geoff Taylor
817b31f8ea
Added a streaming watcher for some account types.
2021-07-21 16:35:38 +01:00
Geoff Taylor
94df52003b
Changes for devnet group v3.8.
...
* Some struct/layout changes
* Big changes to OpenOrders handling in MarketMaker
* Serum and Spot settlement should now work as expected
2021-07-19 15:04:53 +01:00
Geoff Taylor
3ca1d7b706
Updated to new ids.json. Added deposit instruction+command.
2021-07-16 13:32:30 +01:00
Geoff Taylor
bcd56301c9
Brought changes to structs and instructions across for new group/code v3.4.
2021-07-13 12:43:50 +01:00
Geoff Taylor
faf514cde1
Brought up to date for new Group structures. New websocket approach.
2021-07-12 10:57:05 +01:00
Geoff Taylor
bf675122ac
Updated ids.json for new group. Updated Group with new structure.
...
* Extended mechanism for combining instructions.
* Fixed Account's calculations of deposits and borrows.
* Added net_assets to Account.
* Groups now maintain loaded RootBanks, not just PublicKeys of them.
* Fixed simple market-maker's calculation of position sizes.
2021-07-01 21:24:08 +01:00
Geoff Taylor
b5c8f69ae1
Fixed Withdraw command.
2021-06-30 15:06:10 +01:00
Geoff Taylor
3e4ba1052c
Initial work on placing/cancelling spot market orders.
2021-06-30 14:08:37 +01:00
Geoff Taylor
5b71ffbd18
Big Rename - removal of old Group and MarginAccount, deletion of a lot of code that is no longer relevant.
...
* Added some TODO comments where work needs to be done but pieces are currently missing.
2021-06-25 15:50:37 +01:00
Geoff Taylor
cd46c1c98b
First cut at a lot of V3 code.
2021-06-25 10:33:40 +01:00
Geoff Taylor
4294fbebe7
Fixed problem using Wrapped SOL with Serum.
...
* Fixes problems with liquidator re-balancing.
* Fixes problems with group-balance-wallet, group-settle, serum-buy and serum-sell commands.
* Greatly increases the speed of buying and selling on Serum - the IOC order is now placed, cranked and settled in one transaction.
* Associated token accounts and OpenOrders accounts are automatically created as-needed.
2021-06-09 00:47:15 +01:00
Geoff Taylor
5e59d8a7e3
Moved library code to .py files instead of notebooks.
...
* This is a big change that touched most files in the project.
* Library code is now an actual package, in /mango.
* Pure .py files used for shared code - easier to edit/debug, and should ease move to installable package later.
* Removed many notebooks. The remaining notebooks are useful 'display'/'show' notebooks for investigating Mango objects.
* More tests! The test story is now much improved, but more unit tests are still needed.
* There's now a Makefile for project operations.
2021-06-07 15:10:18 +01:00