It sounds like you're trying to automate the process of locating shares for short selling, which is not fully supported through Sterling Trader Pro’s ActiveX API. While Sterling Trader Pro is highly regarded for fast and reliable execution, it lacks full coverage for managing short locates directly via their API.
Potential Solutions:
1. Check with your prop firm about integration options:
Many proprietary trading firms provide separate tools or custom APIs for accessing locate data. Reach out to your firm to check if they offer a dedicated solution for querying and requesting short locates, which you could integrate with your existing automation setup. In some cases, you may be able to build an API bridge between your prop firm's locate system and Sterling Trader.
2. Using Third-Party Locates Providers:
There are third-party services and brokers like CenterPoint Securities and SpeedTrader, which specialize in providing short locates. Some of these brokers may have an API or an automated process to request locates. You might need to integrate their API with your trading platform or use scripting to automate the request process externally.
For example:
- CenterPoint Securities offers an automated way to access locates via their platform, and it may have API support for automation.
- DAS Trader: Some traders switch to DAS Trader as it has more extensive support for APIs, including potential locate requests, and works well with prop firms.
3. Automating via GUI Automation or Bots:
If no direct API exists for locates, you could consider using automation tools like AutoHotkey, SikuliX, or UIPath. These tools can mimic user interactions, enabling you to automate the manual steps involved in requesting locates from within Sterling Trader Pro or another platform. Although not as robust as API-based solutions, GUI automation can often fill the gap when direct API support is unavailable.
4. Explore Other Trading Platforms with Advanced API Support:
Since IBKR doesn’t suit your strategies, here are a few other platforms you could explore that may have the API functionality you’re looking for:
- TradeStation: TradeStation has a very comprehensive API that may allow querying for locate availability or sending locate requests.
- Lightspeed Trading: Known for high-speed execution, Lightspeed also provides API functionality, although you’ll need to confirm whether their API supports locate management.
- CQG: A high-end platform often used by prop traders and institutions, CQG’s API may allow more comprehensive order and locate management.
5. Build a Custom Middleware:
If none of the existing APIs fully meet your needs, you could consider building a middleware solution that ties together different services:
- Use Sterling Trader Pro’s API for order execution.
- Combine this with another system (via third-party broker or custom prop firm integration) to handle short locates.
- A custom middleware would orchestrate requests to buy locates, query availability, and trigger execution based on pre-defined rules.
Next Steps:
- Talk to your prop firm and ask if they have any existing integrations or APIs for managing short locates.
- Research third-party short locate providers and see if they offer APIs that fit your automation needs.
- Consider GUI automation for requesting locates if no API-based solution is available.
- Evaluate switching to a platform like DAS Trader, Lightspeed, or TradeStation if they offer better API access for your strategies.
Feel free to ask for more information on any specific tools or workflows!