{ "opencollection": "1.0.0", "info": { "name": "Level2 Strategy Builder Backtesting Strategies API", "version": "1.0.0" }, "request": { "auth": { "type": "apikey", "key": "api_key", "value": "{{api_key}}", "placement": "query" } }, "items": [ { "info": { "name": "Strategies", "type": "folder" }, "items": [ { "info": { "name": "List user strategies", "type": "http" }, "http": { "method": "GET", "url": "https://app.bytemine.io/api/broker/users/:userId/strategies", "params": [ { "name": "userId", "value": "", "type": "path", "description": "The unique identifier of the broker user on the Level2 platform." }, { "name": "status", "value": "", "type": "query", "description": "Filter strategies by their current status." }, { "name": "limit", "value": "", "type": "query", "description": "Maximum number of strategies to return per page." }, { "name": "offset", "value": "", "type": "query", "description": "Number of strategies to skip for pagination." } ] }, "docs": "Retrieves all trading strategies associated with the specified broker user. Returns both active and inactive strategies created through the Level2 visual strategy builder." }, { "info": { "name": "Create a user strategy", "type": "http" }, "http": { "method": "POST", "url": "https://app.bytemine.io/api/broker/users/:userId/strategies", "params": [ { "name": "userId", "value": "", "type": "path", "description": "The unique identifier of the broker user on the Level2 platform." } ], "body": { "type": "json", "data": "{}" } }, "docs": "Creates a new trading strategy for the specified broker user. The strategy is initialized in draft status and can be configured with trading rules, conditions, and parameters using the strategy definition format from the Level2 visual builder." }, { "info": { "name": "Get a user strategy", "type": "http" }, "http": { "method": "GET", "url": "https://app.bytemine.io/api/broker/users/:userId/strategies/:strategyId", "params": [ { "name": "userId", "value": "", "type": "path", "description": "The unique identifier of the broker user on the Level2 platform." }, { "name": "strategyId", "value": "", "type": "path", "description": "The unique identifier of the trading strategy." } ] }, "docs": "Retrieves the full details of a specific trading strategy including its configuration, status, performance metrics, and deployment state." }, { "info": { "name": "Update a user strategy", "type": "http" }, "http": { "method": "PUT", "url": "https://app.bytemine.io/api/broker/users/:userId/strategies/:strategyId", "params": [ { "name": "userId", "value": "", "type": "path", "description": "The unique identifier of the broker user on the Level2 platform." }, { "name": "strategyId", "value": "", "type": "path", "description": "The unique identifier of the trading strategy." } ], "body": { "type": "json", "data": "{}" } }, "docs": "Updates an existing trading strategy for the specified user. This endpoint can modify the strategy definition, parameters, and metadata. It can also be used to soft-delete or restore a strategy by updating its status." }, { "info": { "name": "Delete a user strategy", "type": "http" }, "http": { "method": "DELETE", "url": "https://app.bytemine.io/api/broker/users/:userId/strategies/:strategyId", "params": [ { "name": "userId", "value": "", "type": "path", "description": "The unique identifier of the broker user on the Level2 platform." }, { "name": "strategyId", "value": "", "type": "path", "description": "The unique identifier of the trading strategy." } ] }, "docs": "Deletes or soft-deletes a user's trading strategy. Once deleted, the strategy is deactivated and any live deployments are stopped. Depending on configuration, the strategy may be recoverable through an update operation." }, { "info": { "name": "Deploy a user strategy", "type": "http" }, "http": { "method": "POST", "url": "https://app.bytemine.io/api/broker/users/:userId/strategies/:strategyId/deploy", "params": [ { "name": "userId", "value": "", "type": "path", "description": "The unique identifier of the broker user on the Level2 platform." }, { "name": "strategyId", "value": "", "type": "path", "description": "The unique identifier of the trading strategy." } ], "body": { "type": "json", "data": "{}" } }, "docs": "Deploys a trading strategy for live execution through the user's connected TradeStation brokerage account. The strategy must be in an active or draft state and have a valid configuration. Once deployed, the strategy will monitor market conditions and execute trades automatically based on its defined rules." }, { "info": { "name": "Stop a deployed strategy", "type": "http" }, "http": { "method": "POST", "url": "https://app.bytemine.io/api/broker/users/:userId/strategies/:strategyId/stop", "params": [ { "name": "userId", "value": "", "type": "path", "description": "The unique identifier of the broker user on the Level2 platform." }, { "name": "strategyId", "value": "", "type": "path", "description": "The unique identifier of the trading strategy." } ] }, "docs": "Stops a currently deployed trading strategy, halting all automated trade execution. The strategy returns to an active state and can be redeployed later. Any open positions created by the strategy are not automatically closed." } ] } ], "bundled": true }