Pre-Trade Data
curl --request GET \
--url https://api.kraken.com/0/public/PreTradeimport requests
url = "https://api.kraken.com/0/public/PreTrade"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.kraken.com/0/public/PreTrade', 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://api.kraken.com/0/public/PreTrade"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"result": {
"symbol": "BTC/USD",
"description": "Bitcoin / US Dollars",
"base_asset": "BTC",
"base_dti_code": "<string>",
"base_dti_short_name": "<string>",
"quote_dti_code": "<string>",
"quote_dti_short_name": "<string>",
"quote_asset": "USD",
"quote_notation": "MONE",
"venue": "PGSL",
"system": "CLOB",
"bids": [
{
"side": "BUY",
"price": "102002.1",
"qty": "102002.1",
"count": 123,
"submission_ts": "2024-05-30T12:34:56.123456Z",
"publication_ts": "2024-05-30T12:34:56.123456Z"
}
],
"asks": [
{
"side": "SELL",
"price": "102002.1",
"qty": "102002.1",
"count": 123,
"submission_ts": "2024-05-30T12:34:56.123456Z",
"publication_ts": "2024-05-30T12:34:56.123456Z"
}
]
},
"error": [
"EGeneral:Invalid arguments"
]
}Transparency
Pre-Trade Data
Returns the price levels in the order book with aggregated order quantities at each price level. The top 10 levels are returned for each trading pair.
GET
/
public
/
PreTrade
Pre-Trade Data
curl --request GET \
--url https://api.kraken.com/0/public/PreTradeimport requests
url = "https://api.kraken.com/0/public/PreTrade"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.kraken.com/0/public/PreTrade', 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://api.kraken.com/0/public/PreTrade"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"result": {
"symbol": "BTC/USD",
"description": "Bitcoin / US Dollars",
"base_asset": "BTC",
"base_dti_code": "<string>",
"base_dti_short_name": "<string>",
"quote_dti_code": "<string>",
"quote_dti_short_name": "<string>",
"quote_asset": "USD",
"quote_notation": "MONE",
"venue": "PGSL",
"system": "CLOB",
"bids": [
{
"side": "BUY",
"price": "102002.1",
"qty": "102002.1",
"count": 123,
"submission_ts": "2024-05-30T12:34:56.123456Z",
"publication_ts": "2024-05-30T12:34:56.123456Z"
}
],
"asks": [
{
"side": "SELL",
"price": "102002.1",
"qty": "102002.1",
"count": 123,
"submission_ts": "2024-05-30T12:34:56.123456Z",
"publication_ts": "2024-05-30T12:34:56.123456Z"
}
]
},
"error": [
"EGeneral:Invalid arguments"
]
}Was this page helpful?
⌘I