Skip to main content
PUT
/
self-trade-strategy
Update self trade strategy
curl --request PUT \
  --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.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/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("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": "2020-08-27T17:03:33.196Z"
}

Authorizations

APIKey
string
header
required

General API key with full access

Authent
string
header
required

Authentication string

Query Parameters

strategy
enum<string>
required

Defines self trade behaviour Self trade matching behaviour:

  • REJECT_TAKER - default behaviour, rejects the taker order that would match against a maker order from any sub-account
  • CANCEL_MAKER_SELF - only cancels the maker order if it is from the same account that sent the taker order
  • CANCEL_MAKER_CHILD - only allows master to cancel its own maker orders and orders from its sub-account
  • CANCEL_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

Response

200 - application/json

Self trade strategy was successfully updated

Self trade strategy response

strategy
enum<string>
required

Self trade matching behaviour:

  • REJECT_TAKER - default behaviour, rejects the taker order that would match against a maker order from any sub-account
  • CANCEL_MAKER_SELF - only cancels the maker order if it is from the same account that sent the taker order
  • CANCEL_MAKER_CHILD - only allows master to cancel its own maker orders and orders from its sub-account
  • CANCEL_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
result
enum<string>
required
Available options:
success
Example:

"success"

serverTime
string<date-time>
required

Server time in Coordinated Universal Time (UTC)

Example:

"2020-08-27T17:03:33.196Z"