Update subaccount trading status
curl --request PUT \
--url https://futures.kraken.com/derivatives/api/v3/subaccount/{subaccountUid}/trading-enabled \
--header 'APIKey: <api-key>' \
--header 'Authent: <api-key>'import requests
url = "https://futures.kraken.com/derivatives/api/v3/subaccount/{subaccountUid}/trading-enabled"
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/subaccount/{subaccountUid}/trading-enabled', 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/subaccount/{subaccountUid}/trading-enabled"
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))
}{
"tradingEnabled": true
}Subaccounts
Update subaccount trading status
Updates trading capabilities for given subaccount.
PUT
/
subaccount
/
{subaccountUid}
/
trading-enabled
Update subaccount trading status
curl --request PUT \
--url https://futures.kraken.com/derivatives/api/v3/subaccount/{subaccountUid}/trading-enabled \
--header 'APIKey: <api-key>' \
--header 'Authent: <api-key>'import requests
url = "https://futures.kraken.com/derivatives/api/v3/subaccount/{subaccountUid}/trading-enabled"
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/subaccount/{subaccountUid}/trading-enabled', 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/subaccount/{subaccountUid}/trading-enabled"
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))
}{
"tradingEnabled": true
}Authorizations
General API key with full access
Authentication string
Path Parameters
Query Parameters
Response
Trading was successfully enabled/disabled.
- Option 1
- Errors
Was this page helpful?