RFQs
Replace open offer on open RFQ
Replace the current open offer on the specified open RFQ, bid and ask are optional but at least one must be provided
Note: This is currently available exclusively in the Kraken Futures DEMO environment.
PUT
/
rfqs
/
{rfqUid}
/
replace-offer
Replace open offer on open RFQ
curl --request PUT \
--url https://demo-futures.kraken.com/derivatives/api/v3/rfqs/{rfqUid}/replace-offer \
--header 'APIKey: <api-key>' \
--header 'Authent: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"bid": 100.5,
"ask": 101.75
}
'import requests
url = "https://demo-futures.kraken.com/derivatives/api/v3/rfqs/{rfqUid}/replace-offer"
payload = {
"bid": 100.5,
"ask": 101.75
}
headers = {
"APIKey": "<api-key>",
"Authent": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {APIKey: '<api-key>', Authent: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({bid: 100.5, ask: 101.75})
};
fetch('https://demo-futures.kraken.com/derivatives/api/v3/rfqs/{rfqUid}/replace-offer', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://demo-futures.kraken.com/derivatives/api/v3/rfqs/{rfqUid}/replace-offer"
payload := strings.NewReader("{\n \"bid\": 100.5,\n \"ask\": 101.75\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("APIKey", "<api-key>")
req.Header.Add("Authent", "<api-key>")
req.Header.Add("Content-Type", "application/json")
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
General API key with at least read-only access
Authentication string
Path Parameters
Unique identifier for the RFQ
Body
application/json
⌘I
Replace open offer on open RFQ
curl --request PUT \
--url https://demo-futures.kraken.com/derivatives/api/v3/rfqs/{rfqUid}/replace-offer \
--header 'APIKey: <api-key>' \
--header 'Authent: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"bid": 100.5,
"ask": 101.75
}
'import requests
url = "https://demo-futures.kraken.com/derivatives/api/v3/rfqs/{rfqUid}/replace-offer"
payload = {
"bid": 100.5,
"ask": 101.75
}
headers = {
"APIKey": "<api-key>",
"Authent": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {APIKey: '<api-key>', Authent: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({bid: 100.5, ask: 101.75})
};
fetch('https://demo-futures.kraken.com/derivatives/api/v3/rfqs/{rfqUid}/replace-offer', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://demo-futures.kraken.com/derivatives/api/v3/rfqs/{rfqUid}/replace-offer"
payload := strings.NewReader("{\n \"bid\": 100.5,\n \"ask\": 101.75\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("APIKey", "<api-key>")
req.Header.Add("Authent", "<api-key>")
req.Header.Add("Content-Type", "application/json")
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"
}