> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://partner.ninjatrader.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://partner.ninjatrader.com/_mcp/server.

# User Account Risk Parameter Create

POST https://live.tradovateapi.com/v1/userAccountRiskParameter/create
Content-Type: application/json

Creates a new UserAccountRiskParameter entity

Reference: https://partner.ninjatrader.com/connect/api/rest-api-endpoints/risks/user-account-risk-parameter-create

## OpenAPI Specification

```yaml
openapi: 3.1.0
info:
  title: connect
  version: 1.0.0
paths:
  /userAccountRiskParameter/create:
    post:
      operationId: user-account-risk-parameter-create
      summary: User Account Risk Parameter Create
      description: Creates a new UserAccountRiskParameter entity
      tags:
        - subpackage_risks
      parameters:
        - name: Authorization
          in: header
          description: Bearer authentication
          required: true
          schema:
            type: string
      responses:
        '200':
          description: UserAccountRiskParameter
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserAccountRiskParameter'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UserAccountRiskParameter'
servers:
  - url: https://live.tradovateapi.com/v1
    description: https://live.tradovateapi.com/v1
components:
  schemas:
    UserAccountRiskParameterProductType:
      type: string
      enum:
        - CommonStock
        - Continuous
        - Cryptocurrency
        - Futures
        - MarketInternals
        - Options
        - Spread
        - Swap
      description: >-
        CommonStock, Continuous, Cryptocurrency, Futures, MarketInternals,
        Options, Spread, Swap
      title: UserAccountRiskParameterProductType
    UserAccountRiskParameterProductVerificationStatus:
      type: string
      enum:
        - Inactive
        - Locked
        - ReadyForContracts
        - ReadyToTrade
        - Verified
      description: Inactive, Locked, ReadyForContracts, ReadyToTrade, Verified
      title: UserAccountRiskParameterProductVerificationStatus
    UserAccountRiskParameter:
      type: object
      properties:
        id:
          type: integer
          format: int64
        contractId:
          type: integer
          format: int64
        productId:
          type: integer
          format: int64
        exchangeId:
          type: integer
          format: int64
        productType:
          $ref: '#/components/schemas/UserAccountRiskParameterProductType'
          description: >-
            CommonStock, Continuous, Cryptocurrency, Futures, MarketInternals,
            Options, Spread, Swap
        riskDiscountContractGroupId:
          type: integer
          format: int64
        productVerificationStatus:
          $ref: >-
            #/components/schemas/UserAccountRiskParameterProductVerificationStatus
          description: Inactive, Locked, ReadyForContracts, ReadyToTrade, Verified
        contractGroupId:
          type: integer
          format: int64
        fungibleProductId:
          type: integer
          format: int64
        maxOpeningOrderQty:
          type: integer
        maxClosingOrderQty:
          type: integer
        fungibleMaxOpeningOrderQty:
          type: integer
        fungibleMaxClosingOrderQty:
          type: integer
        maxBackMonth:
          type: integer
        preExpirationDays:
          type: integer
        marginPercentage:
          type: number
          format: double
        marginDollarValue:
          type: number
          format: double
        hardLimit:
          type: boolean
        userAccountPositionLimitId:
          type: integer
          format: int64
      required:
        - userAccountPositionLimitId
      title: UserAccountRiskParameter
  securitySchemes:
    bearer_access_token:
      type: http
      scheme: bearer

```

## Examples



**Request**

```json
{
  "userAccountPositionLimitId": 1
}
```

**Response**

```json
{
  "userAccountPositionLimitId": 1,
  "id": 1,
  "contractId": 1,
  "productId": 1,
  "exchangeId": 1,
  "productType": "CommonStock",
  "riskDiscountContractGroupId": 1,
  "productVerificationStatus": "Inactive",
  "contractGroupId": 1,
  "fungibleProductId": 1,
  "maxOpeningOrderQty": 1,
  "maxClosingOrderQty": 1,
  "fungibleMaxOpeningOrderQty": 1,
  "fungibleMaxClosingOrderQty": 1,
  "maxBackMonth": 1,
  "preExpirationDays": 1,
  "marginPercentage": 1.1,
  "marginDollarValue": 1.1,
  "hardLimit": true
}
```

**SDK Code**

```python
import requests

url = "https://live.tradovateapi.com/v1/userAccountRiskParameter/create"

payload = { "userAccountPositionLimitId": 1 }
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript
const url = 'https://live.tradovateapi.com/v1/userAccountRiskParameter/create';
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{"userAccountPositionLimitId":1}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://live.tradovateapi.com/v1/userAccountRiskParameter/create"

	payload := strings.NewReader("{\n  \"userAccountPositionLimitId\": 1\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("Authorization", "Bearer <token>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://live.tradovateapi.com/v1/userAccountRiskParameter/create")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"userAccountPositionLimitId\": 1\n}"

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://live.tradovateapi.com/v1/userAccountRiskParameter/create")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"userAccountPositionLimitId\": 1\n}")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://live.tradovateapi.com/v1/userAccountRiskParameter/create', [
  'body' => '{
  "userAccountPositionLimitId": 1
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://live.tradovateapi.com/v1/userAccountRiskParameter/create");
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"userAccountPositionLimitId\": 1\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = ["userAccountPositionLimitId": 1] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://live.tradovateapi.com/v1/userAccountRiskParameter/create")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```