Skip to main content
POST
/
updateStrategyPrice
updateStrategyPrice
curl --request POST \
  --url https://alphainsider.com/api/updateStrategyPrice \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "strategy_id": "<string>",
  "price": 123
}
'
{
  "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:49.100Z",
    "created_at": "2024-10-22T20:44:42.391Z",
    "price": 1500,
    "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.

price
number
required

Monthly subscription price.

Response

Request was successful.