Commit Graph

923 Commits

Author SHA1 Message Date
Geoff Taylor fce7dd0c6a Updated README cancellation example with proper use of client_id. 2022-03-10 16:53:18 +00:00
Geoff Taylor 9bb064b5eb Added timestamp to Order (only available in perp orders). Expanded OrderBook's handling of TIF/expiration. 2022-03-10 14:54:52 +00:00
Geoff Taylor 69f6984549 v3.4.5 2022-03-09 19:06:05 +00:00
Geoff Taylor 43ebf757b0 Placing an order no longer overrides a client ID if one has been specified. 2022-03-09 18:59:51 +00:00
Geoff Taylor 6f04f92120 Added ClientId and Counterparty to TradeHistory. (Counterparty is perp-only though.) 2022-03-09 17:27:19 +00:00
Geoff Taylor 68a2aabcec Improved execute_async() to parallelise execution of chunked transactions. 2022-03-09 16:44:42 +00:00
Geoff Taylor 790f379867 Removed use of abs() to get a Decimal absolute value - now use the copy_abs() method instead. 2022-03-09 12:02:18 +00:00
Geoff Taylor 9f66be9807 Fixed some ugly wording I just added to the README. 2022-03-09 09:51:11 +00:00
Geoff Taylor 2bbcafccaa Updated README Introduction. 2022-03-09 09:35:15 +00:00
Geoff Taylor 0da58bc8bc Exposed OutputFormatter and to_json as public. 2022-03-09 09:26:01 +00:00
Geoff Taylor a93ac32c51 Tweaked README a little. 2022-03-09 09:21:08 +00:00
Geoff Taylor 2571773c90 Keeper now monitors transactions by default. 2022-03-09 09:08:01 +00:00
Geoff Taylor 56159ac777 Updatred README with a lot more sample code. 2022-03-08 16:26:37 +00:00
Geoff Taylor 09b10c6efb v3.4.4 2022-03-08 10:20:37 +00:00
Geoff Taylor a5ce59fe90 Added simple events and fills properties to event queues. 2022-03-08 09:42:21 +00:00
Geoff Taylor 6f7d402c12 Fixed keeper healthcheck to ping when successfully not running as well as successfully running. 2022-03-08 09:35:30 +00:00
Geoff Taylor 553bd5d642 Added health checker to keeper command. 2022-03-08 09:03:38 +00:00
Geoff Taylor b363a3b0bb Added Keeper instructions and a keeper command. 2022-03-08 08:53:11 +00:00
Geoff Taylor 8cb8889581 v3.4.3 2022-03-07 11:25:42 +00:00
Geoff Taylor 172b64796a Removed spurious warning - it's fine for a MarketLookup to not find what it's looking for and return None. 2022-03-04 18:47:38 +00:00
Geoff Taylor 24b5579574 Overrode market_buy() and market_sell() in NullMarketOperations so they didn't do anything but didn't error either. 2022-03-04 17:22:54 +00:00
Geoff Taylor 4094e4a9e5 Fixed problem spot health calculations. 2022-03-04 15:21:58 +00:00
Geoff Taylor ee9a1b53e4 Fixed incorrect stringifying of Settle instruction. 2022-03-04 12:32:06 +00:00
Geoff Taylor 53d68eb2a3 Added build_perp_cancel_all_side_instructions() to cancel orders with a specific side. 2022-03-04 10:11:29 +00:00
Geoff Taylor ba996d9c94 Improved creation of non-existant spot openorders. 2022-03-04 09:45:32 +00:00
Geoff Taylor 89e45e936e Now use fully_qualified_symbol for markets in most places, so Serum and Spot markets can be differentiated. 2022-03-03 18:36:46 +00:00
Geoff Taylor f1ea12e30f Can now withdraw to any wallet, not just current wallet. 2022-03-03 15:41:55 +00:00
Geoff Taylor a1be4a68db send-sols and send-token now accept --wallet-target as a parameter, calculating what should be transferred to leave the desired amount in the wallet. (send-sols takes the cost of the transaction into account so the amount left is accurate.) 2022-03-03 14:25:40 +00:00
Geoff Taylor 6d401a3966 Added missing None check - thanks linter! 2022-03-02 19:32:28 +00:00
Geoff Taylor 49c4353eb2 Added --account-target and --wallet-target to deposit and withdraw commands.
* Can now specify desired wallet or account balance and have the deposit or withdraw action make it so (if it can).
* Updated send-token to use same Associated Token Account creation approach as withdraw, instead of requiring an intermediate transaction - much slicker now.
2022-03-02 18:52:45 +00:00
Geoff Taylor bbc52ebead Added is_empty as property of CombinableInstructions. 2022-03-02 18:46:33 +00:00
Geoff Taylor a12b238217 Added endpoint_url as a member of CompoundRPCCaller because some libraries like the SPL token library raise exceptions if it's not there. 2022-03-02 18:45:43 +00:00
Geoff Taylor ff846dd80c Added Mango Account address to output of Mango Account. 2022-03-02 18:43:57 +00:00
Geoff Taylor ae6725239c Removed unnecessary manual addition of pytest-cov in Makefile. 2022-03-02 12:09:59 +00:00
Geoff Taylor ac379d5ad9 Fix for another Windows datetime problem.
* Made a more thorough check of use of datetimes throughout codebase, replaced some instances.
* Added some tests to make sure comparisons don't raise exceptions.
2022-03-02 11:23:43 +00:00
Geoff Taylor 9d94cf5fdc Removed unused imports. 2022-03-01 12:26:58 +00:00
Geoff Taylor d6a57f3859 Added subscribe() method to all AddressableAccounts. 2022-03-01 12:22:50 +00:00
Geoff Taylor cf5103a23a Trying bytecode compilation of .py files as Docker build step. 2022-03-01 09:05:14 +00:00
Geoff Taylor 2e12296c0e v3.4.2 2022-03-01 07:39:48 +00:00
Geoff Taylor 0627fce0a5 Enabled TIF build_perp function now v3.4 has been deployed. 2022-03-01 07:39:02 +00:00
Geoff Taylor b9700d50bf Fixed bug in transaction waiting in send-sols command. 2022-02-28 18:25:32 +00:00
Geoff Taylor 06ea84ac38 v3.4.1 2022-02-28 17:53:00 +00:00
Geoff Taylor fa6ae78fe3 Updated poetry.lock to fix build server dependency problem with anyio. 2022-02-28 17:39:17 +00:00
Geoff Taylor 5f6e8e954a v3.4.1 2022-02-28 17:21:49 +00:00
Geoff Taylor 11a9fba065 Refactored instructions to have a more consistent naming pattern:
* build_serum_***
* build_spot_***
* build_perp_***
* build_mango_***
2022-02-28 12:10:13 +00:00
Geoff Taylor c0c0acfb49 Ensured consistent abstract methods/properties decorators on abstract classes. 2022-02-27 17:52:59 +00:00
Geoff Taylor 0841490076 Fixed datetime/timezone problem that caused `OSError: [Errno 22] Invalid argument` on Windows. 2022-02-26 19:09:47 +00:00
Geoff Taylor 126fa02508 v3.4.0 2022-02-25 13:57:43 +00:00
Geoff Taylor f8db67e1ad Added pytest-cov to dev dependencies for coverage reports. 2022-02-25 13:56:14 +00:00
Geoff Taylor f120328af7
Merge pull request #46 from silas-x/main
add code coverage to tests
2022-02-25 13:51:21 +00:00