Geoff Taylor
d15e953ae7
Refactor of code to work with mypy --strict
2021-11-09 13:23:36 +00:00
Geoff Taylor
bf7dc95a9d
Merging V3 branch into main.
2021-08-30 15:42:11 +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
bbd8cc487e
Added a --fetch-prices option to show-margin-account.
2021-06-26 18:11:16 +01:00
Geoff Taylor
e61a3806ba
Removed all InstructionBuilders. Instead we'll use simpler functions that return an array of instructions (allowing for compound instructions etc.)
2021-06-25 17:21:53 +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
852abdff00
Made all send_transaction() calls consistent in use of preflight commitment.
2021-06-24 11:59:57 +01:00
Geoff Taylor
f7bd67308e
Improved AccountInfo.load_multiple and made better use of it fetching updated prices.
2021-06-22 09:43:31 +01:00
Geoff Taylor
0fae7679f7
Separated out logic to determine liquidatability of margin account into a more testable setup.
2021-06-15 17:30:25 +01:00
Geoff Taylor
616d929e90
Removed context from Group, added name. Price lookups must now pass the context they want to use.
2021-06-08 08:17:37 +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