Returns the status of an order. Prediction market orders and equity escrow fills are
supported.
curl --request GET \
--url https://quote-api.dflow.net/order-status \
--header 'x-api-key: <api-key>'import requests
url = "https://quote-api.dflow.net/order-status"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://quote-api.dflow.net/order-status', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://quote-api.dflow.net/order-status",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://quote-api.dflow.net/order-status"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://quote-api.dflow.net/order-status")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://quote-api.dflow.net/order-status")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"inAmount": "<string>",
"outAmount": "<string>",
"status": "pending",
"fills": [
{
"inAmount": "<string>",
"inputMint": "<string>",
"outAmount": "<string>",
"outputMint": "<string>",
"signature": "<string>"
}
],
"reverts": [
{
"amount": "<string>",
"mint": "<string>",
"signature": "<string>"
}
]
}{
"code": "<enum<string>>",
"msg": "<string>"
}{
"code": "<enum<string>>",
"msg": "<string>"
}{
"code": "<enum<string>>",
"msg": "<string>"
}Order
Get Order Status
API reference for GET /order-status
GET
/
order-status
Returns the status of an order. Prediction market orders and equity escrow fills are
supported.
curl --request GET \
--url https://quote-api.dflow.net/order-status \
--header 'x-api-key: <api-key>'import requests
url = "https://quote-api.dflow.net/order-status"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://quote-api.dflow.net/order-status', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://quote-api.dflow.net/order-status",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://quote-api.dflow.net/order-status"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://quote-api.dflow.net/order-status")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://quote-api.dflow.net/order-status")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"inAmount": "<string>",
"outAmount": "<string>",
"status": "pending",
"fills": [
{
"inAmount": "<string>",
"inputMint": "<string>",
"outAmount": "<string>",
"outputMint": "<string>",
"signature": "<string>"
}
],
"reverts": [
{
"amount": "<string>",
"mint": "<string>",
"signature": "<string>"
}
]
}{
"code": "<enum<string>>",
"msg": "<string>"
}{
"code": "<enum<string>>",
"msg": "<string>"
}{
"code": "<enum<string>>",
"msg": "<string>"
}Returns the status of an
A
async equity order. You pass the signature of the transaction that opened it and, optionally, the lastValidBlockHeight from the order response.
Order Lifecycle
status | Meaning |
|---|---|
pending | Pending execution. Returned only when the request includes lastValidBlockHeight. |
expired | Did not execute before it expired. The network fee was not paid, and no tokens were transferred. Terminal. Returned only when the request includes lastValidBlockHeight. |
failed | Failed when executed. The network fee was paid, but no other tokens were transferred. Terminal. |
open | Open and can be filled. |
pendingClose | An async equity order can no longer be filled but has not yet been closed. |
closed | Closed and can no longer be filled. Terminal. |
closed status reports what happened to the input, the revertMint from the order response, in fills and reverts:
- Filled:
fillshas the fill transaction and its amounts. - Filled with input returned:
fillshas the filled amounts andrevertshas the returned input. - Not filled, input returned:
fillsis absent andrevertshas the input.
reverts entry has the revert transaction’s signature, the mint, and the amount returned to the revert wallet (set by revertWallet in the request).
Async Equity Order Cancellation
The user cannot cancel anasync equity order.Authorizations
API key for authentication. Apply for one at https://pond.dflow.net/get-started/api-key
Query Parameters
Response
Order status