curl --request PUT \
--url https://futures.kraken.com/derivatives/api/v3/rfq-assignment/max-leverage \
--header 'APIKey: <api-key>' \
--header 'Authent: <api-key>'import requests
url = "https://futures.kraken.com/derivatives/api/v3/rfq-assignment/max-leverage"
headers = {
"APIKey": "<api-key>",
"Authent": "<api-key>"
}
response = requests.put(url, headers=headers)
print(response.text)const options = {method: 'PUT', headers: {APIKey: '<api-key>', Authent: '<api-key>'}};
fetch('https://futures.kraken.com/derivatives/api/v3/rfq-assignment/max-leverage', 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://futures.kraken.com/derivatives/api/v3/rfq-assignment/max-leverage"
req, _ := http.NewRequest("PUT", 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))
}{
"result": "success",
"serverTime": "2022-06-28T15:01:12.762Z",
"maxLeverage": 10
}Set the off-book max leverage cap
Sets the account-level off-book maximum leverage cap for the authenticated master account and returns the stored value.
The cap limits the effective leverage (gross open-position notional / margin equity) the account is willing to reach through off-book fills — liquidation assignments and RFQ offer fills. Book (maker/taker) orders are never affected.
Setting the cap to 0 leaves no leverage budget, so the account takes no
exposure-increasing off-book fill at all: it is the single switch to opt out of assignments
and RFQ fills without withdrawing each assignment preference individually. Fills that
reduce the account’s gross open-position notional still go through, so opting out never
traps the account in its existing exposure.
Only master accounts may call this endpoint. Calling it can result in the following error codes:
invalidArgument: maxLeverage is missing or not a number
rfqAssignmentMaxLeverageOutOfBounds: maxLeverage is outside [0, 100], or has more than 2 decimal places
rfqAssignmentMaxLeverageDisabled: the off-book max leverage feature is not enabled
curl --request PUT \
--url https://futures.kraken.com/derivatives/api/v3/rfq-assignment/max-leverage \
--header 'APIKey: <api-key>' \
--header 'Authent: <api-key>'import requests
url = "https://futures.kraken.com/derivatives/api/v3/rfq-assignment/max-leverage"
headers = {
"APIKey": "<api-key>",
"Authent": "<api-key>"
}
response = requests.put(url, headers=headers)
print(response.text)const options = {method: 'PUT', headers: {APIKey: '<api-key>', Authent: '<api-key>'}};
fetch('https://futures.kraken.com/derivatives/api/v3/rfq-assignment/max-leverage', 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://futures.kraken.com/derivatives/api/v3/rfq-assignment/max-leverage"
req, _ := http.NewRequest("PUT", 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))
}{
"result": "success",
"serverTime": "2022-06-28T15:01:12.762Z",
"maxLeverage": 10
}Authorizations
General API key with full access
Authentication string
Query Parameters
The off-book max leverage cap to set. Must be at least 0 and at most 100, with at most
2 decimal places. 0 blocks all exposure-increasing off-book fills.
Response
OK
Was this page helpful?