Get portfolio margin parameters
curl --request GET \
--url https://demo-futures.kraken.com/derivatives/api/v3/portfolio-margining/parameters \
--header 'APIKey: <api-key>' \
--header 'Authent: <api-key>'import requests
url = "https://demo-futures.kraken.com/derivatives/api/v3/portfolio-margining/parameters"
headers = {
"APIKey": "<api-key>",
"Authent": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {APIKey: '<api-key>', Authent: '<api-key>'}};
fetch('https://demo-futures.kraken.com/derivatives/api/v3/portfolio-margining/parameters', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://demo-futures.kraken.com/derivatives/api/v3/portfolio-margining/parameters"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("APIKey", "<api-key>")
req.Header.Add("Authent", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"crossAssetNettingFactor": 12.03532,
"extremePriceShockMultiplier": 12.03532,
"volShockMultiplicationFactor": 12.03532,
"volShockExponentFactor": 12.03532,
"optionExpiryTimeShockHours": 123,
"optionsInitialMarginFactor": 12.03532,
"totalOptionOrdersConsideredInInitialMarginCalc": 123,
"priceShockLevels": [
12.03532
],
"optionsUserLimits": {
"maxNetPositionDelta": 12.03532,
"limitsPerBaseCurrency": {}
},
"result": "success",
"serverTime": "2020-08-27T17:03:33.196Z"
}Account
Get portfolio margin parameters
Retrieve current portfolio margin calculation parameters.
Also includes user specific limits related to options trading.
Note: This is currently available exclusively in the Kraken pre-prod environments.
GET
/
portfolio-margining
/
parameters
Get portfolio margin parameters
curl --request GET \
--url https://demo-futures.kraken.com/derivatives/api/v3/portfolio-margining/parameters \
--header 'APIKey: <api-key>' \
--header 'Authent: <api-key>'import requests
url = "https://demo-futures.kraken.com/derivatives/api/v3/portfolio-margining/parameters"
headers = {
"APIKey": "<api-key>",
"Authent": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {APIKey: '<api-key>', Authent: '<api-key>'}};
fetch('https://demo-futures.kraken.com/derivatives/api/v3/portfolio-margining/parameters', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://demo-futures.kraken.com/derivatives/api/v3/portfolio-margining/parameters"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("APIKey", "<api-key>")
req.Header.Add("Authent", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"crossAssetNettingFactor": 12.03532,
"extremePriceShockMultiplier": 12.03532,
"volShockMultiplicationFactor": 12.03532,
"volShockExponentFactor": 12.03532,
"optionExpiryTimeShockHours": 123,
"optionsInitialMarginFactor": 12.03532,
"totalOptionOrdersConsideredInInitialMarginCalc": 123,
"priceShockLevels": [
12.03532
],
"optionsUserLimits": {
"maxNetPositionDelta": 12.03532,
"limitsPerBaseCurrency": {}
},
"result": "success",
"serverTime": "2020-08-27T17:03:33.196Z"
}Authorizations
General API key with at least read-only access
Authentication string
Response
200 - application/json
Portfolio margining parameters
- Success Response
- Errors
Example:
12.03532
Example:
12.03532
Example:
12.03532
Example:
12.03532
Example:
12.03532
Show child attributes
Show child attributes
Available options:
success Example:
"success"
Server time in Coordinated Universal Time (UTC)
Example:
"2020-08-27T17:03:33.196Z"
Was this page helpful?