Skip to main content
POST
/
newStrategy
newStrategy
curl --request POST \
  --url https://alphainsider.com/api/newStrategy \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "type": "stock",
  "name": "<string>",
  "input_value": 123,
  "private": true,
  "description": "<string>",
  "price": 123
}
'
{
  "success": true,
  "response": {
    "strategy_id": "WuRnay0CF3P1oPRSdogj5",
    "product_id": "1bRPI9xQHhE23KpAXViKW",
    "user_id": "user_1",
    "type": "stock",
    "private": false,
    "name": "Test strategy",
    "description": "",
    "updated_at": "2024-10-22T20:44:42.391Z",
    "created_at": "2024-10-22T20:44:42.391Z",
    "price": 0,
    "subscriber_count": "0",
    "timeframes": [
      {
        "timeframe": "day",
        "rank_performance": null,
        "rank_popular": null,
        "rank_trending": null,
        "rank_top": null,
        "max_drawdown": "0.000000000000000",
        "past_value": "1.000000000000000"
      },
      {
        "timeframe": "week",
        "rank_performance": null,
        "rank_popular": null,
        "rank_trending": null,
        "rank_top": null,
        "max_drawdown": "0.000000000000000",
        "past_value": "1.000000000000000"
      },
      {
        "timeframe": "month",
        "rank_performance": null,
        "rank_popular": null,
        "rank_trending": null,
        "rank_top": null,
        "max_drawdown": "0.000000000000000",
        "past_value": "1.000000000000000"
      },
      {
        "timeframe": "year",
        "rank_performance": null,
        "rank_popular": null,
        "rank_trending": null,
        "rank_top": null,
        "max_drawdown": "0.000000000000000",
        "past_value": "1.000000000000000"
      },
      {
        "timeframe": "five_year",
        "rank_performance": null,
        "rank_popular": null,
        "rank_trending": null,
        "rank_top": null,
        "max_drawdown": "0.000000000000000",
        "past_value": "1.000000000000000"
      }
    ]
  }
}

Headers

Authorization
string<JWT>
required

User API token.

Body

application/json
type
enum<string>
required

Strategy security type.

Available options:
stock,
cryptocurrency
name
string
required

Strategy name.

input_value
number
required

Relative starting balance.

private
boolean

Whether strategy is public or private.

description
string

Strategy description.

price
number

Monthly subscription price.

Response

Request was successful.