Commit Graph

410 Commits

Author SHA1 Message Date
Geoff Taylor e37dd63cf1 Updated airdrop command to allow requesting SOL airdrops, removing another dependency on solana-cli. 2022-01-29 16:10:03 +00:00
Geoff Taylor 7c574f1ebc Extracted logging setup code to its own function so it can be reused by external programs. 2022-01-29 15:28:00 +00:00
Geoff Taylor f0810cf05a Removed duplicate parameter from PerpPollingModelStateBuilder constructor. 2022-01-29 15:20:44 +00:00
Geoff Taylor 710f6c55a5 Refactored MarketOperations and MarketInstructionBuilder constructors to be more consistent. 2022-01-29 14:59:30 +00:00
Geoff Taylor 0b5894e624 Removed unneeded import. 2022-01-29 13:44:26 +00:00
Geoff Taylor 5a36608b3d Fixed setting of openorders address to use PDA instead of old (now incorrect) method. 2022-01-29 13:26:28 +00:00
Geoff Taylor 7ac08d3c00 Removed unnecessary 'is True' in if statements. 2022-01-28 16:49:44 +00:00
Geoff Taylor 9a8823ada1 Tidied up some lint errors. 2022-01-28 13:53:14 +00:00
SpaceMonkey b362474719 keep status of last 100 sent txes 2022-01-28 12:20:23 +02:00
Geoff Taylor 4c616e5443
Merge branch 'main' into transaction_collector 2022-01-28 09:33:19 +00:00
Geoff Taylor 2a7de48a85
Merge pull request #34 from SpaceMonkeyForever/reduce_only
add reduce_only flag
2022-01-28 09:29:37 +00:00
SpaceMonkey 88a246f3b9 add reduce_only flag 2022-01-27 00:14:41 +02:00
Geoff Taylor 96dcff9570 Added log statement to crank instruction builders. 2022-01-26 17:09:39 +00:00
SpaceMonkey 59acf52d46 keep status of last 100 sent txes 2022-01-25 21:45:05 +02:00
Geoff Taylor c75d76e692 Fixed old use of 'serum' as oracle provider - should have been 'market'. 2022-01-25 10:08:37 +00:00
Geoff Taylor 672542697b Added --hedging-pulse-pause-count parameter to marketmaker to making the hedger pause after placing a trade. 2022-01-24 16:31:01 +00:00
Geoff Taylor 5d36d186ee
Merge pull request #30 from ochaloup/using-http-timeout
Adding option to define HTTP timeout for POST requests to RPC nodes
2022-01-24 11:23:41 +00:00
Ondra Chaloupka 982246c17c Adding option to define HTTP timeout for POST requests to RPC nodes 2022-01-23 23:46:18 +01:00
Geoff Taylor 9fffdd1d03 Made crank operations a bit more consistent between Perp, Spot and Serum markets. 2022-01-22 18:02:26 +00:00
Geoff Taylor eadd2bbb13 Reduced default crank limit in MarketOperations.place_order(). 2022-01-22 17:00:05 +00:00
Geoff Taylor 99c3f2184b Improved exception message for "Instruction exceeds maximum size". 2022-01-22 16:51:04 +00:00
Geoff Taylor 76530318bb Added more detail about keys/accounts to instruction reporters. 2022-01-22 16:42:17 +00:00
Geoff Taylor 615e2abb71 Added cluster URL to rate limiting exceptions. 2022-01-22 16:00:48 +00:00
Geoff Taylor 70dc2d2953
Merge pull request #24 from ochaloup/different-http-ws-ports-addresses
Using different ports for http and ws connections
2022-01-21 17:54:40 +00:00
Geoff Taylor 0be350a134 Can now specify a different 'hedging' interval in the marketmaker. 2022-01-21 17:53:25 +00:00
Ondra Chaloupka 4c0ce606ab Adding an option to use different rpc http and ws addresses for one cluster url 2022-01-21 06:40:00 +01:00
Geoff Taylor a5cf67b845 Improved some slot logging messages. 2022-01-20 16:49:03 +00:00
Geoff Taylor a6605b59c3 Spot OpenOrders now created using a PDA (change in Mango v3.3) 2022-01-20 12:22:59 +00:00
Geoff Taylor 0554a15854 Fixed string names of some marketmaker elements. 2022-01-20 09:21:22 +00:00
Geoff Taylor 117d709ca6 Added ConnectionError to list of exceptions that switch RPC providers. 2022-01-19 19:23:18 +00:00
Geoff Taylor 440a7bc613 Added generate-keypair command. 2022-01-19 14:35:00 +00:00
Geoff Taylor 3c048cf3b6 Updated dependencies. 2022-01-19 12:12:00 +00:00
Geoff Taylor 8ad9033948 Fixed Pyth oracle to use different (new?) symbol naming convention on devnet. 2022-01-19 12:09:59 +00:00
Geoff Taylor f1b14acdcf Added instructions and commands for account delegation. 2022-01-18 17:51:11 +00:00
Geoff Taylor f9b7d7b03f Updated Account layout for v3.3. 2022-01-18 14:35:01 +00:00
Geoff Taylor ad8f8efd47 Updated Group layout for v3.3. 2022-01-18 12:09:15 +00:00
Geoff Taylor 542143975c Changed build_create_account_instructions to use CREATE_MANGO_ACCOUNT instead of INIT_MANGO_ACCOUNT. 2022-01-18 11:25:26 +00:00
Geoff Taylor cd30355ace Added passive-aggressive logging of time take looking for transaction results. 2022-01-15 18:43:14 +00:00
Geoff Taylor 77cc77eedc Added better logging for cancelling all perp orders. 2022-01-15 15:47:14 +00:00
Geoff Taylor 548945cf17 Marketmaker now uses perp's CANCEL_ALL if it's cancelling all orders on a perp market. 2022-01-14 18:32:47 +00:00
Geoff Taylor a96099511d Added an AlwaysReplaceOrderReconciler. 2022-01-14 17:44:07 +00:00
Geoff Taylor d0d9fc45c1 Changed transaction reporting to run on a threadpool instead of creating a thread each time. 2022-01-14 17:36:01 +00:00
Geoff Taylor 3ef9295c31 Added CANCEL_ALL_PERPS instruction and a transaction reporter. 2022-01-14 17:18:31 +00:00
Geoff Taylor 73e422f796 Streamlined use of CompoundException. 2022-01-12 15:04:03 +00:00
Geoff Taylor c670853523 Improved symbol comparisons for Instruments, Tokens and Markets. 2022-01-12 14:51:30 +00:00
Geoff Taylor ced9d209d8 Replaced NamedTuples with dataclasses. 2022-01-12 14:04:54 +00:00
Geoff Taylor 4c31d05a13 Added description of some health calculation from ckamm in comment. 2022-01-11 19:39:25 +00:00
Geoff Taylor 3695dd20fb Added documentation for common parameters. 2022-01-11 19:35:12 +00:00
Geoff Taylor 5db9dfbd30 Another attempt at making Bandit happy. 2022-01-11 15:45:28 +00:00
Geoff Taylor 56cb69fe4d Another attempt at finding the right line to tell Bandit to allow 'pass'. 2022-01-11 15:24:36 +00:00