curl --request POST \
--url https://developers.myfundedperpetuals.com/v1/orders \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--data '
{
"client_order_id": "strategy-7:entry-42",
"type": "market",
"account_id": "j57abc123",
"market_id": "binance|BTCUSDT",
"side": "buy",
"size": 0.001,
"expected_price": 118000,
"leverage": 2,
"margin_mode": "cross"
}
'import requests
url = "https://developers.myfundedperpetuals.com/v1/orders"
payload = {
"client_order_id": "strategy-7:entry-42",
"type": "market",
"account_id": "j57abc123",
"market_id": "binance|BTCUSDT",
"side": "buy",
"size": 0.001,
"expected_price": 118000,
"leverage": 2,
"margin_mode": "cross"
}
headers = {
"Idempotency-Key": "<idempotency-key>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'Idempotency-Key': '<idempotency-key>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
client_order_id: 'strategy-7:entry-42',
type: 'market',
account_id: 'j57abc123',
market_id: 'binance|BTCUSDT',
side: 'buy',
size: 0.001,
expected_price: 118000,
leverage: 2,
margin_mode: 'cross'
})
};
fetch('https://developers.myfundedperpetuals.com/v1/orders', 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://developers.myfundedperpetuals.com/v1/orders",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'client_order_id' => 'strategy-7:entry-42',
'type' => 'market',
'account_id' => 'j57abc123',
'market_id' => 'binance|BTCUSDT',
'side' => 'buy',
'size' => 0.001,
'expected_price' => 118000,
'leverage' => 2,
'margin_mode' => 'cross'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json",
"Idempotency-Key: <idempotency-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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://developers.myfundedperpetuals.com/v1/orders"
payload := strings.NewReader("{\n \"client_order_id\": \"strategy-7:entry-42\",\n \"type\": \"market\",\n \"account_id\": \"j57abc123\",\n \"market_id\": \"binance|BTCUSDT\",\n \"side\": \"buy\",\n \"size\": 0.001,\n \"expected_price\": 118000,\n \"leverage\": 2,\n \"margin_mode\": \"cross\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Idempotency-Key", "<idempotency-key>")
req.Header.Add("Authorization", "Bearer <token>")
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))
}HttpResponse<String> response = Unirest.post("https://developers.myfundedperpetuals.com/v1/orders")
.header("Idempotency-Key", "<idempotency-key>")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"client_order_id\": \"strategy-7:entry-42\",\n \"type\": \"market\",\n \"account_id\": \"j57abc123\",\n \"market_id\": \"binance|BTCUSDT\",\n \"side\": \"buy\",\n \"size\": 0.001,\n \"expected_price\": 118000,\n \"leverage\": 2,\n \"margin_mode\": \"cross\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://developers.myfundedperpetuals.com/v1/orders")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Idempotency-Key"] = '<idempotency-key>'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"client_order_id\": \"strategy-7:entry-42\",\n \"type\": \"market\",\n \"account_id\": \"j57abc123\",\n \"market_id\": \"binance|BTCUSDT\",\n \"side\": \"buy\",\n \"size\": 0.001,\n \"expected_price\": 118000,\n \"leverage\": 2,\n \"margin_mode\": \"cross\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"id": "<string>",
"account_id": "<string>",
"market_id": "<string>",
"provider": "<string>",
"symbol": "<string>",
"coin": "<string>",
"type": "market",
"mode": "market",
"side": "buy",
"size": 123,
"expected_price": 123,
"leverage": 123,
"margin_mode": "cross",
"reduce_only": true,
"status": "pending",
"requested_at": 123,
"client_order_id": "<string>",
"initial_size": 123,
"filled_size": 123,
"fill_price": 123,
"trigger_price": 123,
"limit_price": 123,
"notional": 123,
"fee": 123,
"realized_pnl": 123,
"time_in_force": "gtc",
"gtd_expires_at": 123,
"attached_take_profit_price": 123,
"attached_stop_loss_price": 123,
"chase_offset": 123,
"chase_cap_price": 123,
"trigger_market_id": "<string>",
"trigger_direction": "above",
"triggered_at": 123,
"stop_triggered_at": 123,
"cancel_requested_at": 123,
"oco_sibling_order_id": "<string>",
"target_position_id": "<string>",
"liquidity_role": "maker",
"partial_of_order_id": "<string>",
"partial_fill_root_order_id": "<string>",
"twap_order_id": "<string>",
"scaled_order_id": "<string>",
"reject_reason": "<string>",
"reject_rule_id": "<string>",
"settled_at": 123,
"canceled_at": 123
}
}{
"data": {
"id": "<string>",
"account_id": "<string>",
"market_id": "<string>",
"provider": "<string>",
"symbol": "<string>",
"coin": "<string>",
"type": "market",
"mode": "market",
"side": "buy",
"size": 123,
"expected_price": 123,
"leverage": 123,
"margin_mode": "cross",
"reduce_only": true,
"status": "pending",
"requested_at": 123,
"client_order_id": "<string>",
"initial_size": 123,
"filled_size": 123,
"fill_price": 123,
"trigger_price": 123,
"limit_price": 123,
"notional": 123,
"fee": 123,
"realized_pnl": 123,
"time_in_force": "gtc",
"gtd_expires_at": 123,
"attached_take_profit_price": 123,
"attached_stop_loss_price": 123,
"chase_offset": 123,
"chase_cap_price": 123,
"trigger_market_id": "<string>",
"trigger_direction": "above",
"triggered_at": 123,
"stop_triggered_at": 123,
"cancel_requested_at": 123,
"oco_sibling_order_id": "<string>",
"target_position_id": "<string>",
"liquidity_role": "maker",
"partial_of_order_id": "<string>",
"partial_fill_root_order_id": "<string>",
"twap_order_id": "<string>",
"scaled_order_id": "<string>",
"reject_reason": "<string>",
"reject_rule_id": "<string>",
"settled_at": 123,
"canceled_at": 123
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"details": [
{
"field": "<string>",
"issue": "<string>"
}
]
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"details": [
{
"field": "<string>",
"issue": "<string>"
}
]
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"details": [
{
"field": "<string>",
"issue": "<string>"
}
]
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"details": [
{
"field": "<string>",
"issue": "<string>"
}
]
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"details": [
{
"field": "<string>",
"issue": "<string>"
}
]
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"details": [
{
"field": "<string>",
"issue": "<string>"
}
]
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"details": [
{
"field": "<string>",
"issue": "<string>"
}
]
}
}{
"error": "<unknown>"
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"details": [
{
"field": "<string>",
"issue": "<string>"
}
]
}
}Place a standard or advanced order
Places market, limit, chase, stop, take, take-profit, or external conditional orders through the authoritative paper-trading engine. The optional client_order_id and the idempotency key are committed transactionally with the order. Omit type for the original market-order behavior.
curl --request POST \
--url https://developers.myfundedperpetuals.com/v1/orders \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--data '
{
"client_order_id": "strategy-7:entry-42",
"type": "market",
"account_id": "j57abc123",
"market_id": "binance|BTCUSDT",
"side": "buy",
"size": 0.001,
"expected_price": 118000,
"leverage": 2,
"margin_mode": "cross"
}
'import requests
url = "https://developers.myfundedperpetuals.com/v1/orders"
payload = {
"client_order_id": "strategy-7:entry-42",
"type": "market",
"account_id": "j57abc123",
"market_id": "binance|BTCUSDT",
"side": "buy",
"size": 0.001,
"expected_price": 118000,
"leverage": 2,
"margin_mode": "cross"
}
headers = {
"Idempotency-Key": "<idempotency-key>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'Idempotency-Key': '<idempotency-key>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
client_order_id: 'strategy-7:entry-42',
type: 'market',
account_id: 'j57abc123',
market_id: 'binance|BTCUSDT',
side: 'buy',
size: 0.001,
expected_price: 118000,
leverage: 2,
margin_mode: 'cross'
})
};
fetch('https://developers.myfundedperpetuals.com/v1/orders', 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://developers.myfundedperpetuals.com/v1/orders",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'client_order_id' => 'strategy-7:entry-42',
'type' => 'market',
'account_id' => 'j57abc123',
'market_id' => 'binance|BTCUSDT',
'side' => 'buy',
'size' => 0.001,
'expected_price' => 118000,
'leverage' => 2,
'margin_mode' => 'cross'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json",
"Idempotency-Key: <idempotency-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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://developers.myfundedperpetuals.com/v1/orders"
payload := strings.NewReader("{\n \"client_order_id\": \"strategy-7:entry-42\",\n \"type\": \"market\",\n \"account_id\": \"j57abc123\",\n \"market_id\": \"binance|BTCUSDT\",\n \"side\": \"buy\",\n \"size\": 0.001,\n \"expected_price\": 118000,\n \"leverage\": 2,\n \"margin_mode\": \"cross\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Idempotency-Key", "<idempotency-key>")
req.Header.Add("Authorization", "Bearer <token>")
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))
}HttpResponse<String> response = Unirest.post("https://developers.myfundedperpetuals.com/v1/orders")
.header("Idempotency-Key", "<idempotency-key>")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"client_order_id\": \"strategy-7:entry-42\",\n \"type\": \"market\",\n \"account_id\": \"j57abc123\",\n \"market_id\": \"binance|BTCUSDT\",\n \"side\": \"buy\",\n \"size\": 0.001,\n \"expected_price\": 118000,\n \"leverage\": 2,\n \"margin_mode\": \"cross\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://developers.myfundedperpetuals.com/v1/orders")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Idempotency-Key"] = '<idempotency-key>'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"client_order_id\": \"strategy-7:entry-42\",\n \"type\": \"market\",\n \"account_id\": \"j57abc123\",\n \"market_id\": \"binance|BTCUSDT\",\n \"side\": \"buy\",\n \"size\": 0.001,\n \"expected_price\": 118000,\n \"leverage\": 2,\n \"margin_mode\": \"cross\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"id": "<string>",
"account_id": "<string>",
"market_id": "<string>",
"provider": "<string>",
"symbol": "<string>",
"coin": "<string>",
"type": "market",
"mode": "market",
"side": "buy",
"size": 123,
"expected_price": 123,
"leverage": 123,
"margin_mode": "cross",
"reduce_only": true,
"status": "pending",
"requested_at": 123,
"client_order_id": "<string>",
"initial_size": 123,
"filled_size": 123,
"fill_price": 123,
"trigger_price": 123,
"limit_price": 123,
"notional": 123,
"fee": 123,
"realized_pnl": 123,
"time_in_force": "gtc",
"gtd_expires_at": 123,
"attached_take_profit_price": 123,
"attached_stop_loss_price": 123,
"chase_offset": 123,
"chase_cap_price": 123,
"trigger_market_id": "<string>",
"trigger_direction": "above",
"triggered_at": 123,
"stop_triggered_at": 123,
"cancel_requested_at": 123,
"oco_sibling_order_id": "<string>",
"target_position_id": "<string>",
"liquidity_role": "maker",
"partial_of_order_id": "<string>",
"partial_fill_root_order_id": "<string>",
"twap_order_id": "<string>",
"scaled_order_id": "<string>",
"reject_reason": "<string>",
"reject_rule_id": "<string>",
"settled_at": 123,
"canceled_at": 123
}
}{
"data": {
"id": "<string>",
"account_id": "<string>",
"market_id": "<string>",
"provider": "<string>",
"symbol": "<string>",
"coin": "<string>",
"type": "market",
"mode": "market",
"side": "buy",
"size": 123,
"expected_price": 123,
"leverage": 123,
"margin_mode": "cross",
"reduce_only": true,
"status": "pending",
"requested_at": 123,
"client_order_id": "<string>",
"initial_size": 123,
"filled_size": 123,
"fill_price": 123,
"trigger_price": 123,
"limit_price": 123,
"notional": 123,
"fee": 123,
"realized_pnl": 123,
"time_in_force": "gtc",
"gtd_expires_at": 123,
"attached_take_profit_price": 123,
"attached_stop_loss_price": 123,
"chase_offset": 123,
"chase_cap_price": 123,
"trigger_market_id": "<string>",
"trigger_direction": "above",
"triggered_at": 123,
"stop_triggered_at": 123,
"cancel_requested_at": 123,
"oco_sibling_order_id": "<string>",
"target_position_id": "<string>",
"liquidity_role": "maker",
"partial_of_order_id": "<string>",
"partial_fill_root_order_id": "<string>",
"twap_order_id": "<string>",
"scaled_order_id": "<string>",
"reject_reason": "<string>",
"reject_rule_id": "<string>",
"settled_at": 123,
"canceled_at": 123
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"details": [
{
"field": "<string>",
"issue": "<string>"
}
]
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"details": [
{
"field": "<string>",
"issue": "<string>"
}
]
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"details": [
{
"field": "<string>",
"issue": "<string>"
}
]
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"details": [
{
"field": "<string>",
"issue": "<string>"
}
]
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"details": [
{
"field": "<string>",
"issue": "<string>"
}
]
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"details": [
{
"field": "<string>",
"issue": "<string>"
}
]
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"details": [
{
"field": "<string>",
"issue": "<string>"
}
]
}
}{
"error": "<unknown>"
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"details": [
{
"field": "<string>",
"issue": "<string>"
}
]
}
}Authorizations
API key beginning with fp_live_ (live keys, served at developers.myfundedperpetuals.com) or fp_test_ (test keys, served at sandbox.myfundedperpetuals.com). A key presented on the other host is rejected with 401 and a message naming the correct host.
Headers
Unique printable key for this intended operation. Reuse it only for an identical retry.
1 - 128Body
"binance|BTCUSDT"
buy, sell cross, isolated Optional caller-assigned identity. It is unique across the user's standard and position-close orders and remains searchable after API key rotation.
1 - 128market, limit, chase, stop_market, stop_limit, take_market, take_limit, take_profit, conditional Midpoint observed by the client. Server execution never trusts this value for pricing.
ioc, fok, gtd x >= 0above, below Response
Idempotent replay returning the order's current state.
Show child attributes
Show child attributes