Get self trade strategy
curl --request GET \
--url https://futures.kraken.com/derivatives/api/v3/self-trade-strategy \
--header 'APIKey: <api-key>' \
--header 'Authent: <api-key>'import requests
url = "https://futures.kraken.com/derivatives/api/v3/self-trade-strategy"
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://futures.kraken.com/derivatives/api/v3/self-trade-strategy', 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/self-trade-strategy"
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))
}{
"strategy": "REJECT_TAKER",
"result": "success",
"serverTime": "2020-08-27T17:03:33.196Z"
}Trading Settings
Get self trade strategy
Returns account-wide self-trade matching strategy.
GET
/
self-trade-strategy
Get self trade strategy
curl --request GET \
--url https://futures.kraken.com/derivatives/api/v3/self-trade-strategy \
--header 'APIKey: <api-key>' \
--header 'Authent: <api-key>'import requests
url = "https://futures.kraken.com/derivatives/api/v3/self-trade-strategy"
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://futures.kraken.com/derivatives/api/v3/self-trade-strategy', 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/self-trade-strategy"
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))
}{
"strategy": "REJECT_TAKER",
"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
Get current self trade strategy
- Success Response
- Errors
Self trade strategy response
Self trade matching behaviour:
REJECT_TAKER- default behaviour, rejects the taker order that would match against a maker order from any sub-accountCANCEL_MAKER_SELF- only cancels the maker order if it is from the same account that sent the taker orderCANCEL_MAKER_CHILD- only allows master to cancel its own maker orders and orders from its sub-accountCANCEL_MAKER_ANY- allows both master accounts and their subaccounts to cancel maker orders
Available options:
REJECT_TAKER, CANCEL_MAKER_SELF, CANCEL_MAKER_CHILD, CANCEL_MAKER_ANY Available options:
success Example:
"success"
Server time in Coordinated Universal Time (UTC)
Example:
"2020-08-27T17:03:33.196Z"
Was this page helpful?