Skip to main content
POST
/
updateStrategy
updateStrategy
curl --request POST \
  --url https://alphainsider.com/api/updateStrategy \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "strategy_id": "<string>",
  "name": "<string>",
  "input_value": 123,
  "description": "<string>"
}
'
{
  "success": true,
  "response": {
    "strategy_id": "WuRnay0CF3P1oPRSdogj5",
    "product_id": "1bRPI9xQHhE23KpAXViKW",
    "user_id": "user_1",
    "type": "stock",
    "private": false,
    "name": "Test strategy",
    "description": "test",
    "updated_at": "2024-10-22T20:45:13.848Z",
    "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
strategy_id
string
required

Strategy ID.

name
string
required

Strategy name.

input_value
number
required

Relative starting balance.

description
string

Strategy description.

Response

Request was successful.