Geoff Taylor
c02a4260ef
Switched random taker oracle to FTX.
2021-09-09 21:41:53 +01:00
Geoff Taylor
d1d3910f75
Removed explicit setting of mainnet for price fetching in random taker.
2021-09-09 21:36:40 +01:00
Geoff Taylor
61b135a39d
Fixed random taker script.
2021-09-09 21:27:04 +01:00
Geoff Taylor
45d59f4a96
Updated file-age-check to take multiple files.
2021-08-30 12:27:47 +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
8096483de5
Removed CLUSTER_URL parameter to crank-market-service now we have better environment variable handling in the code.
2021-08-25 18:30:21 +01:00
Geoff Taylor
5a76874466
Updated for new group.
2021-08-19 22:23:19 +01:00
Geoff Taylor
e3cb7720db
random-taker now randomises position size, but with a ceiling.
2021-08-19 17:27:52 +01:00
Geoff Taylor
0f765c471f
Plugged ensure-account into setup-devnet-account.
2021-08-19 13:06:31 +01:00
Geoff Taylor
9462c7e6a1
Removed unused tokens from setup-devnet-account script.
2021-08-17 20:05:09 +01:00
Geoff Taylor
080bdde053
Updated ids.json for group devnet.1
2021-08-12 19:32:41 +01:00
Geoff Taylor
aa1b0adc5c
Updated file-age-check to work with seconds instead of minutes.
2021-08-12 18:36:36 +01:00
Geoff Taylor
3880cdb6ae
Added name parameters to script commands.
2021-08-09 16:39:40 +01:00
Geoff Taylor
88d4cb119a
Updated some figures for devnet account setup script.
2021-08-04 20:19:34 +01:00
Geoff Taylor
65c778d48a
Updated ids.json for new Group.
2021-07-30 21:56:57 +01:00
Geoff Taylor
5777aa44b3
Made Crank script take a Cluster URL parameter.
2021-07-26 13:44:46 +01:00
Geoff Taylor
360a3b7b0c
Added crank-market-service.
2021-07-22 15:58:12 +01:00
Geoff Taylor
043f366704
Added a 'random-taker' script.
2021-07-21 17:57:30 +01:00
Geoff Taylor
8d0348e8be
Fixed problem with World's Simplest Market Maker and oracles for perps.
2021-07-14 14:39:09 +01:00
Geoff Taylor
fd7c045d37
Updated health check pings to use the prefix /var/tmp/mango_healthcheck_
2021-07-14 14:17:14 +01:00
Geoff Taylor
9f99ecf650
Updated SimpleMarketMaker so it could run well against pure Serum markets.
2021-07-14 14:03:51 +01:00
Geoff Taylor
19e4d948d3
Updates to allow some market making on Serum.
2021-07-13 20:01:32 +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
44f21d5dbf
Fixed problem touching comparison file for health check.
2021-07-10 19:45:51 +01:00
Geoff Taylor
cc8ba7d1bd
Added file-age-check to allow liveness checks in Kubernetes.
2021-07-10 17:04:29 +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
3e4ba1052c
Initial work on placing/cancelling spot market orders.
2021-06-30 14:08:37 +01:00
Geoff Taylor
cd46c1c98b
First cut at a lot of V3 code.
2021-06-25 10:33:40 +01:00
Geoff Taylor
fab659c244
Improved access to market lookup data.
...
* Abstracted MarketLookup from SpotMarketLookup, because not all markets need be 'spot'.
* Made MarketLookup accessible from Context.
2021-06-18 13:50:33 +01:00
Geoff Taylor
7078ef4722
Removed default context objects - now have static method on Context object: Context.default().
2021-06-17 11:18:35 +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
Geoff Taylor
5c6abd0733
Added CsvFileNotificationTarget.
...
* Updated notifications to allow notifying on succeeded or failed (or both!) PartialLiquidate transactions.
* Added more information to LiquidationEvent to allow that to flow through to notifications.
2021-05-21 20:02:54 +01:00
Geoff Taylor
8b8afe1a0b
Refactored PollingLiquidator into ReportingAccountLiquidator and LiquidationProcessor
...
* ReportingAccountLiquidator wraps an AccountLiquidator but provides before-and-after logging and reporting.
* Sped up fetch_token_prices() by reducing it to one network fetch
* Centralised loading of ripe mangoes by creating MarginAccount.load_all_ripe()
* Clearer, more consistent use of Observables
* Added RxPy Backpressure library
* Improved container building to allow for different tags
2021-05-21 14:28:42 +01:00
Geoff Taylor
b8e47792f8
Added a simple search script for dev code searches.
2021-05-12 09:14:10 +01:00
Geoff Taylor
4cfc87d420
Split BasketTokenMetadata up. Improved linting.
...
* Split BasketTokenMetadata into BasketToken and Token.
* Improved linting and mypy so it worked across files.
2021-05-11 19:24:02 +01:00
Geoff Taylor
64b14600f7
Merged run-lint and run-mypy. Command is now just run-lint.
2021-05-10 14:46:37 +01:00
Geoff Taylor
b398990898
Added a Quickstart! A nice walkthrough of setting up a liquidator.
2021-05-08 16:01:30 +01:00
Geoff Taylor
3db09e922c
Added wallet balancing. Big changes throughout to support this.
2021-05-06 14:21:40 +01:00
Geoff Taylor
5bf67573ab
Fixed some script issues.
2021-04-29 14:23:05 +01:00
Geoff Taylor
c5734a0624
Moved development commands to 'scripts', so 'bin' is for actual commands.
...
* Added log level as parameter to commands.
2021-04-29 10:53:01 +01:00