Dear All,
We released a set of API endpoints related to managing a strategy. Here's an example use-case you can now do:
- Get recommendations
- Reject a recommendation, then get a new one
- Commit the recommendations
- Reconcile the price you traded at in your broker
Linked Accounts
Please note that API currently does not have access to linked accounts. In other words, the only way to send orders to your broker from P123 is via the website.
New API
Below is the list of the Strategy API endpoints. You can see the details in the KB here. These are the p123api wrapper functions, which we recommend using instead of calling the API endpoints directly. Links to the API endpoints are in the document.
Let us know what you think.
Strategy Functions | |
---|---|
strategy (not new) | This operation returns the data from the Summary, Current Holdings, and Statistics tabs of a strategy or book. |
strategy_holdings | Get strategy holdings on a particular date (defaults to today). |
strategy_rebalance | Get rebalance recommendations. |
strategy_rebalance_commit | Commit rebalance transactions. |
strategy_transactions | Get transaction history for a date or date range. |
strategy_transaction_import | Import transactions. |
strategy_transaction_delete | Delete strategy transactions. |