GET Account Positions
{{baseUrl}}/accounts/:account/positions
QUERY PARAMS

account
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/accounts/:account/positions");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/accounts/:account/positions")
require "http/client"

url = "{{baseUrl}}/accounts/:account/positions"

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/accounts/:account/positions"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/accounts/:account/positions");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/accounts/:account/positions"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/accounts/:account/positions HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/accounts/:account/positions")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/accounts/:account/positions"))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/accounts/:account/positions")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/accounts/:account/positions")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/accounts/:account/positions');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/accounts/:account/positions'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/accounts/:account/positions';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/accounts/:account/positions',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/accounts/:account/positions")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/accounts/:account/positions',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {method: 'GET', url: '{{baseUrl}}/accounts/:account/positions'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/accounts/:account/positions');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {method: 'GET', url: '{{baseUrl}}/accounts/:account/positions'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/accounts/:account/positions';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/accounts/:account/positions"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/accounts/:account/positions" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/accounts/:account/positions",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/accounts/:account/positions');

echo $response->getBody();
setUrl('{{baseUrl}}/accounts/:account/positions');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/accounts/:account/positions');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/accounts/:account/positions' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/accounts/:account/positions' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/accounts/:account/positions")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/accounts/:account/positions"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/accounts/:account/positions"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/accounts/:account/positions")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/accounts/:account/positions') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/accounts/:account/positions";

    let client = reqwest::Client::new();
    let response = client.get(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/accounts/:account/positions
http GET {{baseUrl}}/accounts/:account/positions
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/accounts/:account/positions
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/accounts/:account/positions")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
GET Account Values Summary
{{baseUrl}}/accounts/:account/summary
QUERY PARAMS

account
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/accounts/:account/summary");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/accounts/:account/summary")
require "http/client"

url = "{{baseUrl}}/accounts/:account/summary"

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/accounts/:account/summary"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/accounts/:account/summary");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/accounts/:account/summary"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/accounts/:account/summary HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/accounts/:account/summary")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/accounts/:account/summary"))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/accounts/:account/summary")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/accounts/:account/summary")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/accounts/:account/summary');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/accounts/:account/summary'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/accounts/:account/summary';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/accounts/:account/summary',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/accounts/:account/summary")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/accounts/:account/summary',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {method: 'GET', url: '{{baseUrl}}/accounts/:account/summary'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/accounts/:account/summary');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {method: 'GET', url: '{{baseUrl}}/accounts/:account/summary'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/accounts/:account/summary';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/accounts/:account/summary"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/accounts/:account/summary" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/accounts/:account/summary",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/accounts/:account/summary');

echo $response->getBody();
setUrl('{{baseUrl}}/accounts/:account/summary');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/accounts/:account/summary');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/accounts/:account/summary' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/accounts/:account/summary' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/accounts/:account/summary")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/accounts/:account/summary"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/accounts/:account/summary"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/accounts/:account/summary")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/accounts/:account/summary') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/accounts/:account/summary";

    let client = reqwest::Client::new();
    let response = client.get(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/accounts/:account/summary
http GET {{baseUrl}}/accounts/:account/summary
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/accounts/:account/summary
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/accounts/:account/summary")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
GET Brokerage Accounts
{{baseUrl}}/accounts
QUERY PARAMS

account
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/accounts?account=");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/accounts" {:query-params {:account ""}})
require "http/client"

url = "{{baseUrl}}/accounts?account="

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/accounts?account="),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/accounts?account=");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/accounts?account="

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/accounts?account= HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/accounts?account=")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/accounts?account="))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/accounts?account=")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/accounts?account=")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/accounts?account=');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/accounts',
  params: {account: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/accounts?account=';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/accounts?account=',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/accounts?account=")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/accounts?account=',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {method: 'GET', url: '{{baseUrl}}/accounts', qs: {account: ''}};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/accounts');

req.query({
  account: ''
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'GET',
  url: '{{baseUrl}}/accounts',
  params: {account: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/accounts?account=';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/accounts?account="]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/accounts?account=" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/accounts?account=",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/accounts?account=');

echo $response->getBody();
setUrl('{{baseUrl}}/accounts');
$request->setMethod(HTTP_METH_GET);

$request->setQueryData([
  'account' => ''
]);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/accounts');
$request->setRequestMethod('GET');
$request->setQuery(new http\QueryString([
  'account' => ''
]));

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/accounts?account=' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/accounts?account=' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/accounts?account=")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/accounts"

querystring = {"account":""}

response = requests.get(url, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/accounts"

queryString <- list(account = "")

response <- VERB("GET", url, query = queryString, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/accounts?account=")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/accounts') do |req|
  req.params['account'] = ''
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/accounts";

    let querystring = [
        ("account", ""),
    ];

    let client = reqwest::Client::new();
    let response = client.get(url)
        .query(&querystring)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url '{{baseUrl}}/accounts?account='
http GET '{{baseUrl}}/accounts?account='
wget --quiet \
  --method GET \
  --output-document \
  - '{{baseUrl}}/accounts?account='
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/accounts?account=")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
GET Get security definition
{{baseUrl}}/secdef
BODY json

{
  "conid": "",
  "currency": "",
  "exchange": "",
  "symbol": "",
  "type": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/secdef");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"conid\": \"\",\n  \"currency\": \"\",\n  \"exchange\": \"\",\n  \"symbol\": \"\",\n  \"type\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/secdef" {:content-type :json
                                                  :form-params {:conid ""
                                                                :currency ""
                                                                :exchange ""
                                                                :symbol ""
                                                                :type ""}})
require "http/client"

url = "{{baseUrl}}/secdef"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"conid\": \"\",\n  \"currency\": \"\",\n  \"exchange\": \"\",\n  \"symbol\": \"\",\n  \"type\": \"\"\n}"

response = HTTP::Client.get url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/secdef"),
    Content = new StringContent("{\n  \"conid\": \"\",\n  \"currency\": \"\",\n  \"exchange\": \"\",\n  \"symbol\": \"\",\n  \"type\": \"\"\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/secdef");
var request = new RestRequest("", Method.Get);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"conid\": \"\",\n  \"currency\": \"\",\n  \"exchange\": \"\",\n  \"symbol\": \"\",\n  \"type\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/secdef"

	payload := strings.NewReader("{\n  \"conid\": \"\",\n  \"currency\": \"\",\n  \"exchange\": \"\",\n  \"symbol\": \"\",\n  \"type\": \"\"\n}")

	req, _ := http.NewRequest("GET", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/secdef HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 83

{
  "conid": "",
  "currency": "",
  "exchange": "",
  "symbol": "",
  "type": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/secdef")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"conid\": \"\",\n  \"currency\": \"\",\n  \"exchange\": \"\",\n  \"symbol\": \"\",\n  \"type\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/secdef"))
    .header("content-type", "application/json")
    .method("GET", HttpRequest.BodyPublishers.ofString("{\n  \"conid\": \"\",\n  \"currency\": \"\",\n  \"exchange\": \"\",\n  \"symbol\": \"\",\n  \"type\": \"\"\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"conid\": \"\",\n  \"currency\": \"\",\n  \"exchange\": \"\",\n  \"symbol\": \"\",\n  \"type\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/secdef")
  .get()
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/secdef")
  .header("content-type", "application/json")
  .body("{\n  \"conid\": \"\",\n  \"currency\": \"\",\n  \"exchange\": \"\",\n  \"symbol\": \"\",\n  \"type\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  conid: '',
  currency: '',
  exchange: '',
  symbol: '',
  type: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/secdef');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/secdef',
  headers: {'content-type': 'application/json'},
  data: {conid: '', currency: '', exchange: '', symbol: '', type: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/secdef';
const options = {
  method: 'GET',
  headers: {'content-type': 'application/json'},
  body: '{"conid":"","currency":"","exchange":"","symbol":"","type":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/secdef',
  method: 'GET',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "conid": "",\n  "currency": "",\n  "exchange": "",\n  "symbol": "",\n  "type": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"conid\": \"\",\n  \"currency\": \"\",\n  \"exchange\": \"\",\n  \"symbol\": \"\",\n  \"type\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/secdef")
  .get()
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/secdef',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({conid: '', currency: '', exchange: '', symbol: '', type: ''}));
req.end();
const request = require('request');

const options = {
  method: 'GET',
  url: '{{baseUrl}}/secdef',
  headers: {'content-type': 'application/json'},
  body: {conid: '', currency: '', exchange: '', symbol: '', type: ''},
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/secdef');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  conid: '',
  currency: '',
  exchange: '',
  symbol: '',
  type: ''
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'GET',
  url: '{{baseUrl}}/secdef',
  headers: {'content-type': 'application/json'},
  data: {conid: '', currency: '', exchange: '', symbol: '', type: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/secdef';
const options = {
  method: 'GET',
  headers: {'content-type': 'application/json'},
  body: '{"conid":"","currency":"","exchange":"","symbol":"","type":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"conid": @"",
                              @"currency": @"",
                              @"exchange": @"",
                              @"symbol": @"",
                              @"type": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/secdef"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/secdef" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"conid\": \"\",\n  \"currency\": \"\",\n  \"exchange\": \"\",\n  \"symbol\": \"\",\n  \"type\": \"\"\n}" in

Client.call ~headers ~body `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/secdef",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
  CURLOPT_POSTFIELDS => json_encode([
    'conid' => '',
    'currency' => '',
    'exchange' => '',
    'symbol' => '',
    'type' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/secdef', [
  'body' => '{
  "conid": "",
  "currency": "",
  "exchange": "",
  "symbol": "",
  "type": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/secdef');
$request->setMethod(HTTP_METH_GET);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'conid' => '',
  'currency' => '',
  'exchange' => '',
  'symbol' => '',
  'type' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'conid' => '',
  'currency' => '',
  'exchange' => '',
  'symbol' => '',
  'type' => ''
]));
$request->setRequestUrl('{{baseUrl}}/secdef');
$request->setRequestMethod('GET');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/secdef' -Method GET -Headers $headers -ContentType 'application/json' -Body '{
  "conid": "",
  "currency": "",
  "exchange": "",
  "symbol": "",
  "type": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/secdef' -Method GET -Headers $headers -ContentType 'application/json' -Body '{
  "conid": "",
  "currency": "",
  "exchange": "",
  "symbol": "",
  "type": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"conid\": \"\",\n  \"currency\": \"\",\n  \"exchange\": \"\",\n  \"symbol\": \"\",\n  \"type\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("GET", "/baseUrl/secdef", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/secdef"

payload = {
    "conid": "",
    "currency": "",
    "exchange": "",
    "symbol": "",
    "type": ""
}
headers = {"content-type": "application/json"}

response = requests.get(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/secdef"

payload <- "{\n  \"conid\": \"\",\n  \"currency\": \"\",\n  \"exchange\": \"\",\n  \"symbol\": \"\",\n  \"type\": \"\"\n}"

encode <- "json"

response <- VERB("GET", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/secdef")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"conid\": \"\",\n  \"currency\": \"\",\n  \"exchange\": \"\",\n  \"symbol\": \"\",\n  \"type\": \"\"\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.get('/baseUrl/secdef') do |req|
  req.body = "{\n  \"conid\": \"\",\n  \"currency\": \"\",\n  \"exchange\": \"\",\n  \"symbol\": \"\",\n  \"type\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/secdef";

    let payload = json!({
        "conid": "",
        "currency": "",
        "exchange": "",
        "symbol": "",
        "type": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.get(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/secdef \
  --header 'content-type: application/json' \
  --data '{
  "conid": "",
  "currency": "",
  "exchange": "",
  "symbol": "",
  "type": ""
}'
echo '{
  "conid": "",
  "currency": "",
  "exchange": "",
  "symbol": "",
  "type": ""
}' |  \
  http GET {{baseUrl}}/secdef \
  content-type:application/json
wget --quiet \
  --method GET \
  --header 'content-type: application/json' \
  --body-data '{\n  "conid": "",\n  "currency": "",\n  "exchange": "",\n  "symbol": "",\n  "type": ""\n}' \
  --output-document \
  - {{baseUrl}}/secdef
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "conid": "",
  "currency": "",
  "exchange": "",
  "symbol": "",
  "type": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/secdef")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
GET Exchange Components
{{baseUrl}}/marketdata/exchange_components
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/marketdata/exchange_components");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/marketdata/exchange_components")
require "http/client"

url = "{{baseUrl}}/marketdata/exchange_components"

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/marketdata/exchange_components"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/marketdata/exchange_components");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/marketdata/exchange_components"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/marketdata/exchange_components HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/marketdata/exchange_components")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/marketdata/exchange_components"))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/marketdata/exchange_components")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/marketdata/exchange_components")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/marketdata/exchange_components');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/marketdata/exchange_components'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/marketdata/exchange_components';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/marketdata/exchange_components',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/marketdata/exchange_components")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/marketdata/exchange_components',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {
  method: 'GET',
  url: '{{baseUrl}}/marketdata/exchange_components'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/marketdata/exchange_components');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'GET',
  url: '{{baseUrl}}/marketdata/exchange_components'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/marketdata/exchange_components';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/marketdata/exchange_components"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/marketdata/exchange_components" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/marketdata/exchange_components",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/marketdata/exchange_components');

echo $response->getBody();
setUrl('{{baseUrl}}/marketdata/exchange_components');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/marketdata/exchange_components');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/marketdata/exchange_components' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/marketdata/exchange_components' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/marketdata/exchange_components")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/marketdata/exchange_components"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/marketdata/exchange_components"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/marketdata/exchange_components")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/marketdata/exchange_components') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/marketdata/exchange_components";

    let client = reqwest::Client::new();
    let response = client.get(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/marketdata/exchange_components
http GET {{baseUrl}}/marketdata/exchange_components
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/marketdata/exchange_components
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/marketdata/exchange_components")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
GET Market Data Snapshot
{{baseUrl}}/marketdata/snapshot
BODY json

[
  {
    "conid": "",
    "currency": "",
    "exchange": "",
    "symbol": "",
    "type": ""
  }
]
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/marketdata/snapshot");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "[\n  {\n    \"conid\": \"\",\n    \"currency\": \"\",\n    \"exchange\": \"\",\n    \"symbol\": \"\",\n    \"type\": \"\"\n  }\n]");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/marketdata/snapshot" {:content-type :json
                                                               :form-params [{:conid ""
                                                                              :currency ""
                                                                              :exchange ""
                                                                              :symbol ""
                                                                              :type ""}]})
require "http/client"

url = "{{baseUrl}}/marketdata/snapshot"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "[\n  {\n    \"conid\": \"\",\n    \"currency\": \"\",\n    \"exchange\": \"\",\n    \"symbol\": \"\",\n    \"type\": \"\"\n  }\n]"

response = HTTP::Client.get url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/marketdata/snapshot"),
    Content = new StringContent("[\n  {\n    \"conid\": \"\",\n    \"currency\": \"\",\n    \"exchange\": \"\",\n    \"symbol\": \"\",\n    \"type\": \"\"\n  }\n]")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/marketdata/snapshot");
var request = new RestRequest("", Method.Get);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "[\n  {\n    \"conid\": \"\",\n    \"currency\": \"\",\n    \"exchange\": \"\",\n    \"symbol\": \"\",\n    \"type\": \"\"\n  }\n]", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/marketdata/snapshot"

	payload := strings.NewReader("[\n  {\n    \"conid\": \"\",\n    \"currency\": \"\",\n    \"exchange\": \"\",\n    \"symbol\": \"\",\n    \"type\": \"\"\n  }\n]")

	req, _ := http.NewRequest("GET", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/marketdata/snapshot HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 101

[
  {
    "conid": "",
    "currency": "",
    "exchange": "",
    "symbol": "",
    "type": ""
  }
]
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/marketdata/snapshot")
  .setHeader("content-type", "application/json")
  .setBody("[\n  {\n    \"conid\": \"\",\n    \"currency\": \"\",\n    \"exchange\": \"\",\n    \"symbol\": \"\",\n    \"type\": \"\"\n  }\n]")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/marketdata/snapshot"))
    .header("content-type", "application/json")
    .method("GET", HttpRequest.BodyPublishers.ofString("[\n  {\n    \"conid\": \"\",\n    \"currency\": \"\",\n    \"exchange\": \"\",\n    \"symbol\": \"\",\n    \"type\": \"\"\n  }\n]"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "[\n  {\n    \"conid\": \"\",\n    \"currency\": \"\",\n    \"exchange\": \"\",\n    \"symbol\": \"\",\n    \"type\": \"\"\n  }\n]");
Request request = new Request.Builder()
  .url("{{baseUrl}}/marketdata/snapshot")
  .get()
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/marketdata/snapshot")
  .header("content-type", "application/json")
  .body("[\n  {\n    \"conid\": \"\",\n    \"currency\": \"\",\n    \"exchange\": \"\",\n    \"symbol\": \"\",\n    \"type\": \"\"\n  }\n]")
  .asString();
const data = JSON.stringify([
  {
    conid: '',
    currency: '',
    exchange: '',
    symbol: '',
    type: ''
  }
]);

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/marketdata/snapshot');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/marketdata/snapshot',
  headers: {'content-type': 'application/json'},
  data: [{conid: '', currency: '', exchange: '', symbol: '', type: ''}]
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/marketdata/snapshot';
const options = {
  method: 'GET',
  headers: {'content-type': 'application/json'},
  body: '[{"conid":"","currency":"","exchange":"","symbol":"","type":""}]'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/marketdata/snapshot',
  method: 'GET',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '[\n  {\n    "conid": "",\n    "currency": "",\n    "exchange": "",\n    "symbol": "",\n    "type": ""\n  }\n]'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "[\n  {\n    \"conid\": \"\",\n    \"currency\": \"\",\n    \"exchange\": \"\",\n    \"symbol\": \"\",\n    \"type\": \"\"\n  }\n]")
val request = Request.Builder()
  .url("{{baseUrl}}/marketdata/snapshot")
  .get()
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/marketdata/snapshot',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify([{conid: '', currency: '', exchange: '', symbol: '', type: ''}]));
req.end();
const request = require('request');

const options = {
  method: 'GET',
  url: '{{baseUrl}}/marketdata/snapshot',
  headers: {'content-type': 'application/json'},
  body: [{conid: '', currency: '', exchange: '', symbol: '', type: ''}],
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/marketdata/snapshot');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send([
  {
    conid: '',
    currency: '',
    exchange: '',
    symbol: '',
    type: ''
  }
]);

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'GET',
  url: '{{baseUrl}}/marketdata/snapshot',
  headers: {'content-type': 'application/json'},
  data: [{conid: '', currency: '', exchange: '', symbol: '', type: ''}]
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/marketdata/snapshot';
const options = {
  method: 'GET',
  headers: {'content-type': 'application/json'},
  body: '[{"conid":"","currency":"","exchange":"","symbol":"","type":""}]'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @[ @{ @"conid": @"", @"currency": @"", @"exchange": @"", @"symbol": @"", @"type": @"" } ];

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/marketdata/snapshot"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/marketdata/snapshot" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "[\n  {\n    \"conid\": \"\",\n    \"currency\": \"\",\n    \"exchange\": \"\",\n    \"symbol\": \"\",\n    \"type\": \"\"\n  }\n]" in

Client.call ~headers ~body `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/marketdata/snapshot",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
  CURLOPT_POSTFIELDS => json_encode([
    [
        'conid' => '',
        'currency' => '',
        'exchange' => '',
        'symbol' => '',
        'type' => ''
    ]
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/marketdata/snapshot', [
  'body' => '[
  {
    "conid": "",
    "currency": "",
    "exchange": "",
    "symbol": "",
    "type": ""
  }
]',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/marketdata/snapshot');
$request->setMethod(HTTP_METH_GET);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  [
    'conid' => '',
    'currency' => '',
    'exchange' => '',
    'symbol' => '',
    'type' => ''
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  [
    'conid' => '',
    'currency' => '',
    'exchange' => '',
    'symbol' => '',
    'type' => ''
  ]
]));
$request->setRequestUrl('{{baseUrl}}/marketdata/snapshot');
$request->setRequestMethod('GET');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/marketdata/snapshot' -Method GET -Headers $headers -ContentType 'application/json' -Body '[
  {
    "conid": "",
    "currency": "",
    "exchange": "",
    "symbol": "",
    "type": ""
  }
]'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/marketdata/snapshot' -Method GET -Headers $headers -ContentType 'application/json' -Body '[
  {
    "conid": "",
    "currency": "",
    "exchange": "",
    "symbol": "",
    "type": ""
  }
]'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "[\n  {\n    \"conid\": \"\",\n    \"currency\": \"\",\n    \"exchange\": \"\",\n    \"symbol\": \"\",\n    \"type\": \"\"\n  }\n]"

headers = { 'content-type': "application/json" }

conn.request("GET", "/baseUrl/marketdata/snapshot", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/marketdata/snapshot"

payload = [
    {
        "conid": "",
        "currency": "",
        "exchange": "",
        "symbol": "",
        "type": ""
    }
]
headers = {"content-type": "application/json"}

response = requests.get(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/marketdata/snapshot"

payload <- "[\n  {\n    \"conid\": \"\",\n    \"currency\": \"\",\n    \"exchange\": \"\",\n    \"symbol\": \"\",\n    \"type\": \"\"\n  }\n]"

encode <- "json"

response <- VERB("GET", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/marketdata/snapshot")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["content-type"] = 'application/json'
request.body = "[\n  {\n    \"conid\": \"\",\n    \"currency\": \"\",\n    \"exchange\": \"\",\n    \"symbol\": \"\",\n    \"type\": \"\"\n  }\n]"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.get('/baseUrl/marketdata/snapshot') do |req|
  req.body = "[\n  {\n    \"conid\": \"\",\n    \"currency\": \"\",\n    \"exchange\": \"\",\n    \"symbol\": \"\",\n    \"type\": \"\"\n  }\n]"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/marketdata/snapshot";

    let payload = (
        json!({
            "conid": "",
            "currency": "",
            "exchange": "",
            "symbol": "",
            "type": ""
        })
    );

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.get(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/marketdata/snapshot \
  --header 'content-type: application/json' \
  --data '[
  {
    "conid": "",
    "currency": "",
    "exchange": "",
    "symbol": "",
    "type": ""
  }
]'
echo '[
  {
    "conid": "",
    "currency": "",
    "exchange": "",
    "symbol": "",
    "type": ""
  }
]' |  \
  http GET {{baseUrl}}/marketdata/snapshot \
  content-type:application/json
wget --quiet \
  --method GET \
  --header 'content-type: application/json' \
  --body-data '[\n  {\n    "conid": "",\n    "currency": "",\n    "exchange": "",\n    "symbol": "",\n    "type": ""\n  }\n]' \
  --output-document \
  - {{baseUrl}}/marketdata/snapshot
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  [
    "conid": "",
    "currency": "",
    "exchange": "",
    "symbol": "",
    "type": ""
  ]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/marketdata/snapshot")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST Obtain a access token
{{baseUrl}}/oauth/access_token
BODY json

{
  "oauth_consumer_key": "",
  "oauth_nonce": "",
  "oauth_signature": "",
  "oauth_signature_method": "",
  "oauth_timestamp": "",
  "oauth_token": "",
  "oauth_verifier": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/oauth/access_token");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"oauth_consumer_key\": \"\",\n  \"oauth_nonce\": \"\",\n  \"oauth_signature\": \"\",\n  \"oauth_signature_method\": \"\",\n  \"oauth_timestamp\": \"\",\n  \"oauth_token\": \"\",\n  \"oauth_verifier\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/oauth/access_token" {:content-type :json
                                                               :form-params {:oauth_consumer_key ""
                                                                             :oauth_nonce ""
                                                                             :oauth_signature ""
                                                                             :oauth_signature_method ""
                                                                             :oauth_timestamp ""
                                                                             :oauth_token ""
                                                                             :oauth_verifier ""}})
require "http/client"

url = "{{baseUrl}}/oauth/access_token"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"oauth_consumer_key\": \"\",\n  \"oauth_nonce\": \"\",\n  \"oauth_signature\": \"\",\n  \"oauth_signature_method\": \"\",\n  \"oauth_timestamp\": \"\",\n  \"oauth_token\": \"\",\n  \"oauth_verifier\": \"\"\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/oauth/access_token"),
    Content = new StringContent("{\n  \"oauth_consumer_key\": \"\",\n  \"oauth_nonce\": \"\",\n  \"oauth_signature\": \"\",\n  \"oauth_signature_method\": \"\",\n  \"oauth_timestamp\": \"\",\n  \"oauth_token\": \"\",\n  \"oauth_verifier\": \"\"\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/oauth/access_token");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"oauth_consumer_key\": \"\",\n  \"oauth_nonce\": \"\",\n  \"oauth_signature\": \"\",\n  \"oauth_signature_method\": \"\",\n  \"oauth_timestamp\": \"\",\n  \"oauth_token\": \"\",\n  \"oauth_verifier\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/oauth/access_token"

	payload := strings.NewReader("{\n  \"oauth_consumer_key\": \"\",\n  \"oauth_nonce\": \"\",\n  \"oauth_signature\": \"\",\n  \"oauth_signature_method\": \"\",\n  \"oauth_timestamp\": \"\",\n  \"oauth_token\": \"\",\n  \"oauth_verifier\": \"\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/oauth/access_token HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 178

{
  "oauth_consumer_key": "",
  "oauth_nonce": "",
  "oauth_signature": "",
  "oauth_signature_method": "",
  "oauth_timestamp": "",
  "oauth_token": "",
  "oauth_verifier": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/oauth/access_token")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"oauth_consumer_key\": \"\",\n  \"oauth_nonce\": \"\",\n  \"oauth_signature\": \"\",\n  \"oauth_signature_method\": \"\",\n  \"oauth_timestamp\": \"\",\n  \"oauth_token\": \"\",\n  \"oauth_verifier\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/oauth/access_token"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"oauth_consumer_key\": \"\",\n  \"oauth_nonce\": \"\",\n  \"oauth_signature\": \"\",\n  \"oauth_signature_method\": \"\",\n  \"oauth_timestamp\": \"\",\n  \"oauth_token\": \"\",\n  \"oauth_verifier\": \"\"\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"oauth_consumer_key\": \"\",\n  \"oauth_nonce\": \"\",\n  \"oauth_signature\": \"\",\n  \"oauth_signature_method\": \"\",\n  \"oauth_timestamp\": \"\",\n  \"oauth_token\": \"\",\n  \"oauth_verifier\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/oauth/access_token")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/oauth/access_token")
  .header("content-type", "application/json")
  .body("{\n  \"oauth_consumer_key\": \"\",\n  \"oauth_nonce\": \"\",\n  \"oauth_signature\": \"\",\n  \"oauth_signature_method\": \"\",\n  \"oauth_timestamp\": \"\",\n  \"oauth_token\": \"\",\n  \"oauth_verifier\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  oauth_consumer_key: '',
  oauth_nonce: '',
  oauth_signature: '',
  oauth_signature_method: '',
  oauth_timestamp: '',
  oauth_token: '',
  oauth_verifier: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/oauth/access_token');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/oauth/access_token',
  headers: {'content-type': 'application/json'},
  data: {
    oauth_consumer_key: '',
    oauth_nonce: '',
    oauth_signature: '',
    oauth_signature_method: '',
    oauth_timestamp: '',
    oauth_token: '',
    oauth_verifier: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/oauth/access_token';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"oauth_consumer_key":"","oauth_nonce":"","oauth_signature":"","oauth_signature_method":"","oauth_timestamp":"","oauth_token":"","oauth_verifier":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/oauth/access_token',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "oauth_consumer_key": "",\n  "oauth_nonce": "",\n  "oauth_signature": "",\n  "oauth_signature_method": "",\n  "oauth_timestamp": "",\n  "oauth_token": "",\n  "oauth_verifier": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"oauth_consumer_key\": \"\",\n  \"oauth_nonce\": \"\",\n  \"oauth_signature\": \"\",\n  \"oauth_signature_method\": \"\",\n  \"oauth_timestamp\": \"\",\n  \"oauth_token\": \"\",\n  \"oauth_verifier\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/oauth/access_token")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/oauth/access_token',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({
  oauth_consumer_key: '',
  oauth_nonce: '',
  oauth_signature: '',
  oauth_signature_method: '',
  oauth_timestamp: '',
  oauth_token: '',
  oauth_verifier: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/oauth/access_token',
  headers: {'content-type': 'application/json'},
  body: {
    oauth_consumer_key: '',
    oauth_nonce: '',
    oauth_signature: '',
    oauth_signature_method: '',
    oauth_timestamp: '',
    oauth_token: '',
    oauth_verifier: ''
  },
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/oauth/access_token');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  oauth_consumer_key: '',
  oauth_nonce: '',
  oauth_signature: '',
  oauth_signature_method: '',
  oauth_timestamp: '',
  oauth_token: '',
  oauth_verifier: ''
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/oauth/access_token',
  headers: {'content-type': 'application/json'},
  data: {
    oauth_consumer_key: '',
    oauth_nonce: '',
    oauth_signature: '',
    oauth_signature_method: '',
    oauth_timestamp: '',
    oauth_token: '',
    oauth_verifier: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/oauth/access_token';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"oauth_consumer_key":"","oauth_nonce":"","oauth_signature":"","oauth_signature_method":"","oauth_timestamp":"","oauth_token":"","oauth_verifier":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"oauth_consumer_key": @"",
                              @"oauth_nonce": @"",
                              @"oauth_signature": @"",
                              @"oauth_signature_method": @"",
                              @"oauth_timestamp": @"",
                              @"oauth_token": @"",
                              @"oauth_verifier": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/oauth/access_token"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/oauth/access_token" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"oauth_consumer_key\": \"\",\n  \"oauth_nonce\": \"\",\n  \"oauth_signature\": \"\",\n  \"oauth_signature_method\": \"\",\n  \"oauth_timestamp\": \"\",\n  \"oauth_token\": \"\",\n  \"oauth_verifier\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/oauth/access_token",
  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([
    'oauth_consumer_key' => '',
    'oauth_nonce' => '',
    'oauth_signature' => '',
    'oauth_signature_method' => '',
    'oauth_timestamp' => '',
    'oauth_token' => '',
    'oauth_verifier' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/oauth/access_token', [
  'body' => '{
  "oauth_consumer_key": "",
  "oauth_nonce": "",
  "oauth_signature": "",
  "oauth_signature_method": "",
  "oauth_timestamp": "",
  "oauth_token": "",
  "oauth_verifier": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/oauth/access_token');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'oauth_consumer_key' => '',
  'oauth_nonce' => '',
  'oauth_signature' => '',
  'oauth_signature_method' => '',
  'oauth_timestamp' => '',
  'oauth_token' => '',
  'oauth_verifier' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'oauth_consumer_key' => '',
  'oauth_nonce' => '',
  'oauth_signature' => '',
  'oauth_signature_method' => '',
  'oauth_timestamp' => '',
  'oauth_token' => '',
  'oauth_verifier' => ''
]));
$request->setRequestUrl('{{baseUrl}}/oauth/access_token');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/oauth/access_token' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "oauth_consumer_key": "",
  "oauth_nonce": "",
  "oauth_signature": "",
  "oauth_signature_method": "",
  "oauth_timestamp": "",
  "oauth_token": "",
  "oauth_verifier": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/oauth/access_token' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "oauth_consumer_key": "",
  "oauth_nonce": "",
  "oauth_signature": "",
  "oauth_signature_method": "",
  "oauth_timestamp": "",
  "oauth_token": "",
  "oauth_verifier": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"oauth_consumer_key\": \"\",\n  \"oauth_nonce\": \"\",\n  \"oauth_signature\": \"\",\n  \"oauth_signature_method\": \"\",\n  \"oauth_timestamp\": \"\",\n  \"oauth_token\": \"\",\n  \"oauth_verifier\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/oauth/access_token", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/oauth/access_token"

payload = {
    "oauth_consumer_key": "",
    "oauth_nonce": "",
    "oauth_signature": "",
    "oauth_signature_method": "",
    "oauth_timestamp": "",
    "oauth_token": "",
    "oauth_verifier": ""
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/oauth/access_token"

payload <- "{\n  \"oauth_consumer_key\": \"\",\n  \"oauth_nonce\": \"\",\n  \"oauth_signature\": \"\",\n  \"oauth_signature_method\": \"\",\n  \"oauth_timestamp\": \"\",\n  \"oauth_token\": \"\",\n  \"oauth_verifier\": \"\"\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/oauth/access_token")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"oauth_consumer_key\": \"\",\n  \"oauth_nonce\": \"\",\n  \"oauth_signature\": \"\",\n  \"oauth_signature_method\": \"\",\n  \"oauth_timestamp\": \"\",\n  \"oauth_token\": \"\",\n  \"oauth_verifier\": \"\"\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/oauth/access_token') do |req|
  req.body = "{\n  \"oauth_consumer_key\": \"\",\n  \"oauth_nonce\": \"\",\n  \"oauth_signature\": \"\",\n  \"oauth_signature_method\": \"\",\n  \"oauth_timestamp\": \"\",\n  \"oauth_token\": \"\",\n  \"oauth_verifier\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/oauth/access_token";

    let payload = json!({
        "oauth_consumer_key": "",
        "oauth_nonce": "",
        "oauth_signature": "",
        "oauth_signature_method": "",
        "oauth_timestamp": "",
        "oauth_token": "",
        "oauth_verifier": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/oauth/access_token \
  --header 'content-type: application/json' \
  --data '{
  "oauth_consumer_key": "",
  "oauth_nonce": "",
  "oauth_signature": "",
  "oauth_signature_method": "",
  "oauth_timestamp": "",
  "oauth_token": "",
  "oauth_verifier": ""
}'
echo '{
  "oauth_consumer_key": "",
  "oauth_nonce": "",
  "oauth_signature": "",
  "oauth_signature_method": "",
  "oauth_timestamp": "",
  "oauth_token": "",
  "oauth_verifier": ""
}' |  \
  http POST {{baseUrl}}/oauth/access_token \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "oauth_consumer_key": "",\n  "oauth_nonce": "",\n  "oauth_signature": "",\n  "oauth_signature_method": "",\n  "oauth_timestamp": "",\n  "oauth_token": "",\n  "oauth_verifier": ""\n}' \
  --output-document \
  - {{baseUrl}}/oauth/access_token
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "oauth_consumer_key": "",
  "oauth_nonce": "",
  "oauth_signature": "",
  "oauth_signature_method": "",
  "oauth_timestamp": "",
  "oauth_token": "",
  "oauth_verifier": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/oauth/access_token")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST Obtain a live session token
{{baseUrl}}/oauth/live_session_token
BODY json

{
  "diffie_hellman_challenge": "",
  "oauth_consumer_key": "",
  "oauth_nonce": "",
  "oauth_signature": "",
  "oauth_signature_method": "",
  "oauth_timestamp": "",
  "oauth_token": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/oauth/live_session_token");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"diffie_hellman_challenge\": \"\",\n  \"oauth_consumer_key\": \"\",\n  \"oauth_nonce\": \"\",\n  \"oauth_signature\": \"\",\n  \"oauth_signature_method\": \"\",\n  \"oauth_timestamp\": \"\",\n  \"oauth_token\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/oauth/live_session_token" {:content-type :json
                                                                     :form-params {:diffie_hellman_challenge ""
                                                                                   :oauth_consumer_key ""
                                                                                   :oauth_nonce ""
                                                                                   :oauth_signature ""
                                                                                   :oauth_signature_method ""
                                                                                   :oauth_timestamp ""
                                                                                   :oauth_token ""}})
require "http/client"

url = "{{baseUrl}}/oauth/live_session_token"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"diffie_hellman_challenge\": \"\",\n  \"oauth_consumer_key\": \"\",\n  \"oauth_nonce\": \"\",\n  \"oauth_signature\": \"\",\n  \"oauth_signature_method\": \"\",\n  \"oauth_timestamp\": \"\",\n  \"oauth_token\": \"\"\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/oauth/live_session_token"),
    Content = new StringContent("{\n  \"diffie_hellman_challenge\": \"\",\n  \"oauth_consumer_key\": \"\",\n  \"oauth_nonce\": \"\",\n  \"oauth_signature\": \"\",\n  \"oauth_signature_method\": \"\",\n  \"oauth_timestamp\": \"\",\n  \"oauth_token\": \"\"\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/oauth/live_session_token");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"diffie_hellman_challenge\": \"\",\n  \"oauth_consumer_key\": \"\",\n  \"oauth_nonce\": \"\",\n  \"oauth_signature\": \"\",\n  \"oauth_signature_method\": \"\",\n  \"oauth_timestamp\": \"\",\n  \"oauth_token\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/oauth/live_session_token"

	payload := strings.NewReader("{\n  \"diffie_hellman_challenge\": \"\",\n  \"oauth_consumer_key\": \"\",\n  \"oauth_nonce\": \"\",\n  \"oauth_signature\": \"\",\n  \"oauth_signature_method\": \"\",\n  \"oauth_timestamp\": \"\",\n  \"oauth_token\": \"\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/oauth/live_session_token HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 188

{
  "diffie_hellman_challenge": "",
  "oauth_consumer_key": "",
  "oauth_nonce": "",
  "oauth_signature": "",
  "oauth_signature_method": "",
  "oauth_timestamp": "",
  "oauth_token": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/oauth/live_session_token")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"diffie_hellman_challenge\": \"\",\n  \"oauth_consumer_key\": \"\",\n  \"oauth_nonce\": \"\",\n  \"oauth_signature\": \"\",\n  \"oauth_signature_method\": \"\",\n  \"oauth_timestamp\": \"\",\n  \"oauth_token\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/oauth/live_session_token"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"diffie_hellman_challenge\": \"\",\n  \"oauth_consumer_key\": \"\",\n  \"oauth_nonce\": \"\",\n  \"oauth_signature\": \"\",\n  \"oauth_signature_method\": \"\",\n  \"oauth_timestamp\": \"\",\n  \"oauth_token\": \"\"\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"diffie_hellman_challenge\": \"\",\n  \"oauth_consumer_key\": \"\",\n  \"oauth_nonce\": \"\",\n  \"oauth_signature\": \"\",\n  \"oauth_signature_method\": \"\",\n  \"oauth_timestamp\": \"\",\n  \"oauth_token\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/oauth/live_session_token")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/oauth/live_session_token")
  .header("content-type", "application/json")
  .body("{\n  \"diffie_hellman_challenge\": \"\",\n  \"oauth_consumer_key\": \"\",\n  \"oauth_nonce\": \"\",\n  \"oauth_signature\": \"\",\n  \"oauth_signature_method\": \"\",\n  \"oauth_timestamp\": \"\",\n  \"oauth_token\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  diffie_hellman_challenge: '',
  oauth_consumer_key: '',
  oauth_nonce: '',
  oauth_signature: '',
  oauth_signature_method: '',
  oauth_timestamp: '',
  oauth_token: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/oauth/live_session_token');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/oauth/live_session_token',
  headers: {'content-type': 'application/json'},
  data: {
    diffie_hellman_challenge: '',
    oauth_consumer_key: '',
    oauth_nonce: '',
    oauth_signature: '',
    oauth_signature_method: '',
    oauth_timestamp: '',
    oauth_token: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/oauth/live_session_token';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"diffie_hellman_challenge":"","oauth_consumer_key":"","oauth_nonce":"","oauth_signature":"","oauth_signature_method":"","oauth_timestamp":"","oauth_token":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/oauth/live_session_token',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "diffie_hellman_challenge": "",\n  "oauth_consumer_key": "",\n  "oauth_nonce": "",\n  "oauth_signature": "",\n  "oauth_signature_method": "",\n  "oauth_timestamp": "",\n  "oauth_token": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"diffie_hellman_challenge\": \"\",\n  \"oauth_consumer_key\": \"\",\n  \"oauth_nonce\": \"\",\n  \"oauth_signature\": \"\",\n  \"oauth_signature_method\": \"\",\n  \"oauth_timestamp\": \"\",\n  \"oauth_token\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/oauth/live_session_token")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/oauth/live_session_token',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({
  diffie_hellman_challenge: '',
  oauth_consumer_key: '',
  oauth_nonce: '',
  oauth_signature: '',
  oauth_signature_method: '',
  oauth_timestamp: '',
  oauth_token: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/oauth/live_session_token',
  headers: {'content-type': 'application/json'},
  body: {
    diffie_hellman_challenge: '',
    oauth_consumer_key: '',
    oauth_nonce: '',
    oauth_signature: '',
    oauth_signature_method: '',
    oauth_timestamp: '',
    oauth_token: ''
  },
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/oauth/live_session_token');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  diffie_hellman_challenge: '',
  oauth_consumer_key: '',
  oauth_nonce: '',
  oauth_signature: '',
  oauth_signature_method: '',
  oauth_timestamp: '',
  oauth_token: ''
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/oauth/live_session_token',
  headers: {'content-type': 'application/json'},
  data: {
    diffie_hellman_challenge: '',
    oauth_consumer_key: '',
    oauth_nonce: '',
    oauth_signature: '',
    oauth_signature_method: '',
    oauth_timestamp: '',
    oauth_token: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/oauth/live_session_token';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"diffie_hellman_challenge":"","oauth_consumer_key":"","oauth_nonce":"","oauth_signature":"","oauth_signature_method":"","oauth_timestamp":"","oauth_token":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"diffie_hellman_challenge": @"",
                              @"oauth_consumer_key": @"",
                              @"oauth_nonce": @"",
                              @"oauth_signature": @"",
                              @"oauth_signature_method": @"",
                              @"oauth_timestamp": @"",
                              @"oauth_token": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/oauth/live_session_token"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/oauth/live_session_token" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"diffie_hellman_challenge\": \"\",\n  \"oauth_consumer_key\": \"\",\n  \"oauth_nonce\": \"\",\n  \"oauth_signature\": \"\",\n  \"oauth_signature_method\": \"\",\n  \"oauth_timestamp\": \"\",\n  \"oauth_token\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/oauth/live_session_token",
  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([
    'diffie_hellman_challenge' => '',
    'oauth_consumer_key' => '',
    'oauth_nonce' => '',
    'oauth_signature' => '',
    'oauth_signature_method' => '',
    'oauth_timestamp' => '',
    'oauth_token' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/oauth/live_session_token', [
  'body' => '{
  "diffie_hellman_challenge": "",
  "oauth_consumer_key": "",
  "oauth_nonce": "",
  "oauth_signature": "",
  "oauth_signature_method": "",
  "oauth_timestamp": "",
  "oauth_token": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/oauth/live_session_token');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'diffie_hellman_challenge' => '',
  'oauth_consumer_key' => '',
  'oauth_nonce' => '',
  'oauth_signature' => '',
  'oauth_signature_method' => '',
  'oauth_timestamp' => '',
  'oauth_token' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'diffie_hellman_challenge' => '',
  'oauth_consumer_key' => '',
  'oauth_nonce' => '',
  'oauth_signature' => '',
  'oauth_signature_method' => '',
  'oauth_timestamp' => '',
  'oauth_token' => ''
]));
$request->setRequestUrl('{{baseUrl}}/oauth/live_session_token');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/oauth/live_session_token' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "diffie_hellman_challenge": "",
  "oauth_consumer_key": "",
  "oauth_nonce": "",
  "oauth_signature": "",
  "oauth_signature_method": "",
  "oauth_timestamp": "",
  "oauth_token": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/oauth/live_session_token' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "diffie_hellman_challenge": "",
  "oauth_consumer_key": "",
  "oauth_nonce": "",
  "oauth_signature": "",
  "oauth_signature_method": "",
  "oauth_timestamp": "",
  "oauth_token": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"diffie_hellman_challenge\": \"\",\n  \"oauth_consumer_key\": \"\",\n  \"oauth_nonce\": \"\",\n  \"oauth_signature\": \"\",\n  \"oauth_signature_method\": \"\",\n  \"oauth_timestamp\": \"\",\n  \"oauth_token\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/oauth/live_session_token", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/oauth/live_session_token"

payload = {
    "diffie_hellman_challenge": "",
    "oauth_consumer_key": "",
    "oauth_nonce": "",
    "oauth_signature": "",
    "oauth_signature_method": "",
    "oauth_timestamp": "",
    "oauth_token": ""
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/oauth/live_session_token"

payload <- "{\n  \"diffie_hellman_challenge\": \"\",\n  \"oauth_consumer_key\": \"\",\n  \"oauth_nonce\": \"\",\n  \"oauth_signature\": \"\",\n  \"oauth_signature_method\": \"\",\n  \"oauth_timestamp\": \"\",\n  \"oauth_token\": \"\"\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/oauth/live_session_token")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"diffie_hellman_challenge\": \"\",\n  \"oauth_consumer_key\": \"\",\n  \"oauth_nonce\": \"\",\n  \"oauth_signature\": \"\",\n  \"oauth_signature_method\": \"\",\n  \"oauth_timestamp\": \"\",\n  \"oauth_token\": \"\"\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/oauth/live_session_token') do |req|
  req.body = "{\n  \"diffie_hellman_challenge\": \"\",\n  \"oauth_consumer_key\": \"\",\n  \"oauth_nonce\": \"\",\n  \"oauth_signature\": \"\",\n  \"oauth_signature_method\": \"\",\n  \"oauth_timestamp\": \"\",\n  \"oauth_token\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/oauth/live_session_token";

    let payload = json!({
        "diffie_hellman_challenge": "",
        "oauth_consumer_key": "",
        "oauth_nonce": "",
        "oauth_signature": "",
        "oauth_signature_method": "",
        "oauth_timestamp": "",
        "oauth_token": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/oauth/live_session_token \
  --header 'content-type: application/json' \
  --data '{
  "diffie_hellman_challenge": "",
  "oauth_consumer_key": "",
  "oauth_nonce": "",
  "oauth_signature": "",
  "oauth_signature_method": "",
  "oauth_timestamp": "",
  "oauth_token": ""
}'
echo '{
  "diffie_hellman_challenge": "",
  "oauth_consumer_key": "",
  "oauth_nonce": "",
  "oauth_signature": "",
  "oauth_signature_method": "",
  "oauth_timestamp": "",
  "oauth_token": ""
}' |  \
  http POST {{baseUrl}}/oauth/live_session_token \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "diffie_hellman_challenge": "",\n  "oauth_consumer_key": "",\n  "oauth_nonce": "",\n  "oauth_signature": "",\n  "oauth_signature_method": "",\n  "oauth_timestamp": "",\n  "oauth_token": ""\n}' \
  --output-document \
  - {{baseUrl}}/oauth/live_session_token
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "diffie_hellman_challenge": "",
  "oauth_consumer_key": "",
  "oauth_nonce": "",
  "oauth_signature": "",
  "oauth_signature_method": "",
  "oauth_timestamp": "",
  "oauth_token": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/oauth/live_session_token")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST Obtain a request token
{{baseUrl}}/oauth/request_token
BODY json

{
  "oauth_callback": "",
  "oauth_consumer_key": "",
  "oauth_nonce": "",
  "oauth_signature": "",
  "oauth_signature_method": "",
  "oauth_timestamp": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/oauth/request_token");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"oauth_callback\": \"\",\n  \"oauth_consumer_key\": \"\",\n  \"oauth_nonce\": \"\",\n  \"oauth_signature\": \"\",\n  \"oauth_signature_method\": \"\",\n  \"oauth_timestamp\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/oauth/request_token" {:content-type :json
                                                                :form-params {:oauth_callback ""
                                                                              :oauth_consumer_key ""
                                                                              :oauth_nonce ""
                                                                              :oauth_signature ""
                                                                              :oauth_signature_method ""
                                                                              :oauth_timestamp ""}})
require "http/client"

url = "{{baseUrl}}/oauth/request_token"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"oauth_callback\": \"\",\n  \"oauth_consumer_key\": \"\",\n  \"oauth_nonce\": \"\",\n  \"oauth_signature\": \"\",\n  \"oauth_signature_method\": \"\",\n  \"oauth_timestamp\": \"\"\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/oauth/request_token"),
    Content = new StringContent("{\n  \"oauth_callback\": \"\",\n  \"oauth_consumer_key\": \"\",\n  \"oauth_nonce\": \"\",\n  \"oauth_signature\": \"\",\n  \"oauth_signature_method\": \"\",\n  \"oauth_timestamp\": \"\"\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/oauth/request_token");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"oauth_callback\": \"\",\n  \"oauth_consumer_key\": \"\",\n  \"oauth_nonce\": \"\",\n  \"oauth_signature\": \"\",\n  \"oauth_signature_method\": \"\",\n  \"oauth_timestamp\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/oauth/request_token"

	payload := strings.NewReader("{\n  \"oauth_callback\": \"\",\n  \"oauth_consumer_key\": \"\",\n  \"oauth_nonce\": \"\",\n  \"oauth_signature\": \"\",\n  \"oauth_signature_method\": \"\",\n  \"oauth_timestamp\": \"\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/oauth/request_token HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 157

{
  "oauth_callback": "",
  "oauth_consumer_key": "",
  "oauth_nonce": "",
  "oauth_signature": "",
  "oauth_signature_method": "",
  "oauth_timestamp": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/oauth/request_token")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"oauth_callback\": \"\",\n  \"oauth_consumer_key\": \"\",\n  \"oauth_nonce\": \"\",\n  \"oauth_signature\": \"\",\n  \"oauth_signature_method\": \"\",\n  \"oauth_timestamp\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/oauth/request_token"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"oauth_callback\": \"\",\n  \"oauth_consumer_key\": \"\",\n  \"oauth_nonce\": \"\",\n  \"oauth_signature\": \"\",\n  \"oauth_signature_method\": \"\",\n  \"oauth_timestamp\": \"\"\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"oauth_callback\": \"\",\n  \"oauth_consumer_key\": \"\",\n  \"oauth_nonce\": \"\",\n  \"oauth_signature\": \"\",\n  \"oauth_signature_method\": \"\",\n  \"oauth_timestamp\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/oauth/request_token")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/oauth/request_token")
  .header("content-type", "application/json")
  .body("{\n  \"oauth_callback\": \"\",\n  \"oauth_consumer_key\": \"\",\n  \"oauth_nonce\": \"\",\n  \"oauth_signature\": \"\",\n  \"oauth_signature_method\": \"\",\n  \"oauth_timestamp\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  oauth_callback: '',
  oauth_consumer_key: '',
  oauth_nonce: '',
  oauth_signature: '',
  oauth_signature_method: '',
  oauth_timestamp: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/oauth/request_token');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/oauth/request_token',
  headers: {'content-type': 'application/json'},
  data: {
    oauth_callback: '',
    oauth_consumer_key: '',
    oauth_nonce: '',
    oauth_signature: '',
    oauth_signature_method: '',
    oauth_timestamp: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/oauth/request_token';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"oauth_callback":"","oauth_consumer_key":"","oauth_nonce":"","oauth_signature":"","oauth_signature_method":"","oauth_timestamp":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/oauth/request_token',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "oauth_callback": "",\n  "oauth_consumer_key": "",\n  "oauth_nonce": "",\n  "oauth_signature": "",\n  "oauth_signature_method": "",\n  "oauth_timestamp": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"oauth_callback\": \"\",\n  \"oauth_consumer_key\": \"\",\n  \"oauth_nonce\": \"\",\n  \"oauth_signature\": \"\",\n  \"oauth_signature_method\": \"\",\n  \"oauth_timestamp\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/oauth/request_token")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/oauth/request_token',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({
  oauth_callback: '',
  oauth_consumer_key: '',
  oauth_nonce: '',
  oauth_signature: '',
  oauth_signature_method: '',
  oauth_timestamp: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/oauth/request_token',
  headers: {'content-type': 'application/json'},
  body: {
    oauth_callback: '',
    oauth_consumer_key: '',
    oauth_nonce: '',
    oauth_signature: '',
    oauth_signature_method: '',
    oauth_timestamp: ''
  },
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/oauth/request_token');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  oauth_callback: '',
  oauth_consumer_key: '',
  oauth_nonce: '',
  oauth_signature: '',
  oauth_signature_method: '',
  oauth_timestamp: ''
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/oauth/request_token',
  headers: {'content-type': 'application/json'},
  data: {
    oauth_callback: '',
    oauth_consumer_key: '',
    oauth_nonce: '',
    oauth_signature: '',
    oauth_signature_method: '',
    oauth_timestamp: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/oauth/request_token';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"oauth_callback":"","oauth_consumer_key":"","oauth_nonce":"","oauth_signature":"","oauth_signature_method":"","oauth_timestamp":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"oauth_callback": @"",
                              @"oauth_consumer_key": @"",
                              @"oauth_nonce": @"",
                              @"oauth_signature": @"",
                              @"oauth_signature_method": @"",
                              @"oauth_timestamp": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/oauth/request_token"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/oauth/request_token" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"oauth_callback\": \"\",\n  \"oauth_consumer_key\": \"\",\n  \"oauth_nonce\": \"\",\n  \"oauth_signature\": \"\",\n  \"oauth_signature_method\": \"\",\n  \"oauth_timestamp\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/oauth/request_token",
  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([
    'oauth_callback' => '',
    'oauth_consumer_key' => '',
    'oauth_nonce' => '',
    'oauth_signature' => '',
    'oauth_signature_method' => '',
    'oauth_timestamp' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/oauth/request_token', [
  'body' => '{
  "oauth_callback": "",
  "oauth_consumer_key": "",
  "oauth_nonce": "",
  "oauth_signature": "",
  "oauth_signature_method": "",
  "oauth_timestamp": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/oauth/request_token');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'oauth_callback' => '',
  'oauth_consumer_key' => '',
  'oauth_nonce' => '',
  'oauth_signature' => '',
  'oauth_signature_method' => '',
  'oauth_timestamp' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'oauth_callback' => '',
  'oauth_consumer_key' => '',
  'oauth_nonce' => '',
  'oauth_signature' => '',
  'oauth_signature_method' => '',
  'oauth_timestamp' => ''
]));
$request->setRequestUrl('{{baseUrl}}/oauth/request_token');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/oauth/request_token' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "oauth_callback": "",
  "oauth_consumer_key": "",
  "oauth_nonce": "",
  "oauth_signature": "",
  "oauth_signature_method": "",
  "oauth_timestamp": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/oauth/request_token' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "oauth_callback": "",
  "oauth_consumer_key": "",
  "oauth_nonce": "",
  "oauth_signature": "",
  "oauth_signature_method": "",
  "oauth_timestamp": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"oauth_callback\": \"\",\n  \"oauth_consumer_key\": \"\",\n  \"oauth_nonce\": \"\",\n  \"oauth_signature\": \"\",\n  \"oauth_signature_method\": \"\",\n  \"oauth_timestamp\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/oauth/request_token", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/oauth/request_token"

payload = {
    "oauth_callback": "",
    "oauth_consumer_key": "",
    "oauth_nonce": "",
    "oauth_signature": "",
    "oauth_signature_method": "",
    "oauth_timestamp": ""
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/oauth/request_token"

payload <- "{\n  \"oauth_callback\": \"\",\n  \"oauth_consumer_key\": \"\",\n  \"oauth_nonce\": \"\",\n  \"oauth_signature\": \"\",\n  \"oauth_signature_method\": \"\",\n  \"oauth_timestamp\": \"\"\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/oauth/request_token")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"oauth_callback\": \"\",\n  \"oauth_consumer_key\": \"\",\n  \"oauth_nonce\": \"\",\n  \"oauth_signature\": \"\",\n  \"oauth_signature_method\": \"\",\n  \"oauth_timestamp\": \"\"\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/oauth/request_token') do |req|
  req.body = "{\n  \"oauth_callback\": \"\",\n  \"oauth_consumer_key\": \"\",\n  \"oauth_nonce\": \"\",\n  \"oauth_signature\": \"\",\n  \"oauth_signature_method\": \"\",\n  \"oauth_timestamp\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/oauth/request_token";

    let payload = json!({
        "oauth_callback": "",
        "oauth_consumer_key": "",
        "oauth_nonce": "",
        "oauth_signature": "",
        "oauth_signature_method": "",
        "oauth_timestamp": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/oauth/request_token \
  --header 'content-type: application/json' \
  --data '{
  "oauth_callback": "",
  "oauth_consumer_key": "",
  "oauth_nonce": "",
  "oauth_signature": "",
  "oauth_signature_method": "",
  "oauth_timestamp": ""
}'
echo '{
  "oauth_callback": "",
  "oauth_consumer_key": "",
  "oauth_nonce": "",
  "oauth_signature": "",
  "oauth_signature_method": "",
  "oauth_timestamp": ""
}' |  \
  http POST {{baseUrl}}/oauth/request_token \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "oauth_callback": "",\n  "oauth_consumer_key": "",\n  "oauth_nonce": "",\n  "oauth_signature": "",\n  "oauth_signature_method": "",\n  "oauth_timestamp": ""\n}' \
  --output-document \
  - {{baseUrl}}/oauth/request_token
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "oauth_callback": "",
  "oauth_consumer_key": "",
  "oauth_nonce": "",
  "oauth_signature": "",
  "oauth_signature_method": "",
  "oauth_timestamp": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/oauth/request_token")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST Return margin impact info
{{baseUrl}}/accounts/:account/order_impact
BODY json

{
  "Aux Price": "",
  "ContractId": "",
  "Currency": "",
  "CustomerOrderId": "",
  "InstrumentType": "",
  "ListingExchange": "",
  "Order Type": "",
  "Price": "",
  "Quantity": "",
  "Side": "",
  "Ticker": "",
  "Time in Force": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/accounts/:account/order_impact");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"Aux Price\": \"\",\n  \"ContractId\": \"\",\n  \"Currency\": \"\",\n  \"CustomerOrderId\": \"\",\n  \"InstrumentType\": \"\",\n  \"ListingExchange\": \"\",\n  \"Order Type\": \"\",\n  \"Price\": \"\",\n  \"Quantity\": \"\",\n  \"Side\": \"\",\n  \"Ticker\": \"\",\n  \"Time in Force\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/accounts/:account/order_impact" {:content-type :json
                                                                           :form-params {:Aux Price ""
                                                                                         :ContractId ""
                                                                                         :Currency ""
                                                                                         :CustomerOrderId ""
                                                                                         :InstrumentType ""
                                                                                         :ListingExchange ""
                                                                                         :Order Type ""
                                                                                         :Price ""
                                                                                         :Quantity ""
                                                                                         :Side ""
                                                                                         :Ticker ""
                                                                                         :Time in Force ""}})
require "http/client"

url = "{{baseUrl}}/accounts/:account/order_impact"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"Aux Price\": \"\",\n  \"ContractId\": \"\",\n  \"Currency\": \"\",\n  \"CustomerOrderId\": \"\",\n  \"InstrumentType\": \"\",\n  \"ListingExchange\": \"\",\n  \"Order Type\": \"\",\n  \"Price\": \"\",\n  \"Quantity\": \"\",\n  \"Side\": \"\",\n  \"Ticker\": \"\",\n  \"Time in Force\": \"\"\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/accounts/:account/order_impact"),
    Content = new StringContent("{\n  \"Aux Price\": \"\",\n  \"ContractId\": \"\",\n  \"Currency\": \"\",\n  \"CustomerOrderId\": \"\",\n  \"InstrumentType\": \"\",\n  \"ListingExchange\": \"\",\n  \"Order Type\": \"\",\n  \"Price\": \"\",\n  \"Quantity\": \"\",\n  \"Side\": \"\",\n  \"Ticker\": \"\",\n  \"Time in Force\": \"\"\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/accounts/:account/order_impact");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"Aux Price\": \"\",\n  \"ContractId\": \"\",\n  \"Currency\": \"\",\n  \"CustomerOrderId\": \"\",\n  \"InstrumentType\": \"\",\n  \"ListingExchange\": \"\",\n  \"Order Type\": \"\",\n  \"Price\": \"\",\n  \"Quantity\": \"\",\n  \"Side\": \"\",\n  \"Ticker\": \"\",\n  \"Time in Force\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/accounts/:account/order_impact"

	payload := strings.NewReader("{\n  \"Aux Price\": \"\",\n  \"ContractId\": \"\",\n  \"Currency\": \"\",\n  \"CustomerOrderId\": \"\",\n  \"InstrumentType\": \"\",\n  \"ListingExchange\": \"\",\n  \"Order Type\": \"\",\n  \"Price\": \"\",\n  \"Quantity\": \"\",\n  \"Side\": \"\",\n  \"Ticker\": \"\",\n  \"Time in Force\": \"\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/accounts/:account/order_impact HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 239

{
  "Aux Price": "",
  "ContractId": "",
  "Currency": "",
  "CustomerOrderId": "",
  "InstrumentType": "",
  "ListingExchange": "",
  "Order Type": "",
  "Price": "",
  "Quantity": "",
  "Side": "",
  "Ticker": "",
  "Time in Force": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/accounts/:account/order_impact")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"Aux Price\": \"\",\n  \"ContractId\": \"\",\n  \"Currency\": \"\",\n  \"CustomerOrderId\": \"\",\n  \"InstrumentType\": \"\",\n  \"ListingExchange\": \"\",\n  \"Order Type\": \"\",\n  \"Price\": \"\",\n  \"Quantity\": \"\",\n  \"Side\": \"\",\n  \"Ticker\": \"\",\n  \"Time in Force\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/accounts/:account/order_impact"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"Aux Price\": \"\",\n  \"ContractId\": \"\",\n  \"Currency\": \"\",\n  \"CustomerOrderId\": \"\",\n  \"InstrumentType\": \"\",\n  \"ListingExchange\": \"\",\n  \"Order Type\": \"\",\n  \"Price\": \"\",\n  \"Quantity\": \"\",\n  \"Side\": \"\",\n  \"Ticker\": \"\",\n  \"Time in Force\": \"\"\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"Aux Price\": \"\",\n  \"ContractId\": \"\",\n  \"Currency\": \"\",\n  \"CustomerOrderId\": \"\",\n  \"InstrumentType\": \"\",\n  \"ListingExchange\": \"\",\n  \"Order Type\": \"\",\n  \"Price\": \"\",\n  \"Quantity\": \"\",\n  \"Side\": \"\",\n  \"Ticker\": \"\",\n  \"Time in Force\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/accounts/:account/order_impact")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/accounts/:account/order_impact")
  .header("content-type", "application/json")
  .body("{\n  \"Aux Price\": \"\",\n  \"ContractId\": \"\",\n  \"Currency\": \"\",\n  \"CustomerOrderId\": \"\",\n  \"InstrumentType\": \"\",\n  \"ListingExchange\": \"\",\n  \"Order Type\": \"\",\n  \"Price\": \"\",\n  \"Quantity\": \"\",\n  \"Side\": \"\",\n  \"Ticker\": \"\",\n  \"Time in Force\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  'Aux Price': '',
  ContractId: '',
  Currency: '',
  CustomerOrderId: '',
  InstrumentType: '',
  ListingExchange: '',
  'Order Type': '',
  Price: '',
  Quantity: '',
  Side: '',
  Ticker: '',
  'Time in Force': ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/accounts/:account/order_impact');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/accounts/:account/order_impact',
  headers: {'content-type': 'application/json'},
  data: {
    'Aux Price': '',
    ContractId: '',
    Currency: '',
    CustomerOrderId: '',
    InstrumentType: '',
    ListingExchange: '',
    'Order Type': '',
    Price: '',
    Quantity: '',
    Side: '',
    Ticker: '',
    'Time in Force': ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/accounts/:account/order_impact';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"Aux Price":"","ContractId":"","Currency":"","CustomerOrderId":"","InstrumentType":"","ListingExchange":"","Order Type":"","Price":"","Quantity":"","Side":"","Ticker":"","Time in Force":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/accounts/:account/order_impact',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "Aux Price": "",\n  "ContractId": "",\n  "Currency": "",\n  "CustomerOrderId": "",\n  "InstrumentType": "",\n  "ListingExchange": "",\n  "Order Type": "",\n  "Price": "",\n  "Quantity": "",\n  "Side": "",\n  "Ticker": "",\n  "Time in Force": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"Aux Price\": \"\",\n  \"ContractId\": \"\",\n  \"Currency\": \"\",\n  \"CustomerOrderId\": \"\",\n  \"InstrumentType\": \"\",\n  \"ListingExchange\": \"\",\n  \"Order Type\": \"\",\n  \"Price\": \"\",\n  \"Quantity\": \"\",\n  \"Side\": \"\",\n  \"Ticker\": \"\",\n  \"Time in Force\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/accounts/:account/order_impact")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/accounts/:account/order_impact',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({
  'Aux Price': '',
  ContractId: '',
  Currency: '',
  CustomerOrderId: '',
  InstrumentType: '',
  ListingExchange: '',
  'Order Type': '',
  Price: '',
  Quantity: '',
  Side: '',
  Ticker: '',
  'Time in Force': ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/accounts/:account/order_impact',
  headers: {'content-type': 'application/json'},
  body: {
    'Aux Price': '',
    ContractId: '',
    Currency: '',
    CustomerOrderId: '',
    InstrumentType: '',
    ListingExchange: '',
    'Order Type': '',
    Price: '',
    Quantity: '',
    Side: '',
    Ticker: '',
    'Time in Force': ''
  },
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/accounts/:account/order_impact');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  'Aux Price': '',
  ContractId: '',
  Currency: '',
  CustomerOrderId: '',
  InstrumentType: '',
  ListingExchange: '',
  'Order Type': '',
  Price: '',
  Quantity: '',
  Side: '',
  Ticker: '',
  'Time in Force': ''
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/accounts/:account/order_impact',
  headers: {'content-type': 'application/json'},
  data: {
    'Aux Price': '',
    ContractId: '',
    Currency: '',
    CustomerOrderId: '',
    InstrumentType: '',
    ListingExchange: '',
    'Order Type': '',
    Price: '',
    Quantity: '',
    Side: '',
    Ticker: '',
    'Time in Force': ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/accounts/:account/order_impact';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"Aux Price":"","ContractId":"","Currency":"","CustomerOrderId":"","InstrumentType":"","ListingExchange":"","Order Type":"","Price":"","Quantity":"","Side":"","Ticker":"","Time in Force":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"Aux Price": @"",
                              @"ContractId": @"",
                              @"Currency": @"",
                              @"CustomerOrderId": @"",
                              @"InstrumentType": @"",
                              @"ListingExchange": @"",
                              @"Order Type": @"",
                              @"Price": @"",
                              @"Quantity": @"",
                              @"Side": @"",
                              @"Ticker": @"",
                              @"Time in Force": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/accounts/:account/order_impact"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/accounts/:account/order_impact" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"Aux Price\": \"\",\n  \"ContractId\": \"\",\n  \"Currency\": \"\",\n  \"CustomerOrderId\": \"\",\n  \"InstrumentType\": \"\",\n  \"ListingExchange\": \"\",\n  \"Order Type\": \"\",\n  \"Price\": \"\",\n  \"Quantity\": \"\",\n  \"Side\": \"\",\n  \"Ticker\": \"\",\n  \"Time in Force\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/accounts/:account/order_impact",
  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([
    'Aux Price' => '',
    'ContractId' => '',
    'Currency' => '',
    'CustomerOrderId' => '',
    'InstrumentType' => '',
    'ListingExchange' => '',
    'Order Type' => '',
    'Price' => '',
    'Quantity' => '',
    'Side' => '',
    'Ticker' => '',
    'Time in Force' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/accounts/:account/order_impact', [
  'body' => '{
  "Aux Price": "",
  "ContractId": "",
  "Currency": "",
  "CustomerOrderId": "",
  "InstrumentType": "",
  "ListingExchange": "",
  "Order Type": "",
  "Price": "",
  "Quantity": "",
  "Side": "",
  "Ticker": "",
  "Time in Force": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/accounts/:account/order_impact');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'Aux Price' => '',
  'ContractId' => '',
  'Currency' => '',
  'CustomerOrderId' => '',
  'InstrumentType' => '',
  'ListingExchange' => '',
  'Order Type' => '',
  'Price' => '',
  'Quantity' => '',
  'Side' => '',
  'Ticker' => '',
  'Time in Force' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'Aux Price' => '',
  'ContractId' => '',
  'Currency' => '',
  'CustomerOrderId' => '',
  'InstrumentType' => '',
  'ListingExchange' => '',
  'Order Type' => '',
  'Price' => '',
  'Quantity' => '',
  'Side' => '',
  'Ticker' => '',
  'Time in Force' => ''
]));
$request->setRequestUrl('{{baseUrl}}/accounts/:account/order_impact');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/accounts/:account/order_impact' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "Aux Price": "",
  "ContractId": "",
  "Currency": "",
  "CustomerOrderId": "",
  "InstrumentType": "",
  "ListingExchange": "",
  "Order Type": "",
  "Price": "",
  "Quantity": "",
  "Side": "",
  "Ticker": "",
  "Time in Force": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/accounts/:account/order_impact' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "Aux Price": "",
  "ContractId": "",
  "Currency": "",
  "CustomerOrderId": "",
  "InstrumentType": "",
  "ListingExchange": "",
  "Order Type": "",
  "Price": "",
  "Quantity": "",
  "Side": "",
  "Ticker": "",
  "Time in Force": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"Aux Price\": \"\",\n  \"ContractId\": \"\",\n  \"Currency\": \"\",\n  \"CustomerOrderId\": \"\",\n  \"InstrumentType\": \"\",\n  \"ListingExchange\": \"\",\n  \"Order Type\": \"\",\n  \"Price\": \"\",\n  \"Quantity\": \"\",\n  \"Side\": \"\",\n  \"Ticker\": \"\",\n  \"Time in Force\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/accounts/:account/order_impact", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/accounts/:account/order_impact"

payload = {
    "Aux Price": "",
    "ContractId": "",
    "Currency": "",
    "CustomerOrderId": "",
    "InstrumentType": "",
    "ListingExchange": "",
    "Order Type": "",
    "Price": "",
    "Quantity": "",
    "Side": "",
    "Ticker": "",
    "Time in Force": ""
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/accounts/:account/order_impact"

payload <- "{\n  \"Aux Price\": \"\",\n  \"ContractId\": \"\",\n  \"Currency\": \"\",\n  \"CustomerOrderId\": \"\",\n  \"InstrumentType\": \"\",\n  \"ListingExchange\": \"\",\n  \"Order Type\": \"\",\n  \"Price\": \"\",\n  \"Quantity\": \"\",\n  \"Side\": \"\",\n  \"Ticker\": \"\",\n  \"Time in Force\": \"\"\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/accounts/:account/order_impact")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"Aux Price\": \"\",\n  \"ContractId\": \"\",\n  \"Currency\": \"\",\n  \"CustomerOrderId\": \"\",\n  \"InstrumentType\": \"\",\n  \"ListingExchange\": \"\",\n  \"Order Type\": \"\",\n  \"Price\": \"\",\n  \"Quantity\": \"\",\n  \"Side\": \"\",\n  \"Ticker\": \"\",\n  \"Time in Force\": \"\"\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/accounts/:account/order_impact') do |req|
  req.body = "{\n  \"Aux Price\": \"\",\n  \"ContractId\": \"\",\n  \"Currency\": \"\",\n  \"CustomerOrderId\": \"\",\n  \"InstrumentType\": \"\",\n  \"ListingExchange\": \"\",\n  \"Order Type\": \"\",\n  \"Price\": \"\",\n  \"Quantity\": \"\",\n  \"Side\": \"\",\n  \"Ticker\": \"\",\n  \"Time in Force\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/accounts/:account/order_impact";

    let payload = json!({
        "Aux Price": "",
        "ContractId": "",
        "Currency": "",
        "CustomerOrderId": "",
        "InstrumentType": "",
        "ListingExchange": "",
        "Order Type": "",
        "Price": "",
        "Quantity": "",
        "Side": "",
        "Ticker": "",
        "Time in Force": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/accounts/:account/order_impact \
  --header 'content-type: application/json' \
  --data '{
  "Aux Price": "",
  "ContractId": "",
  "Currency": "",
  "CustomerOrderId": "",
  "InstrumentType": "",
  "ListingExchange": "",
  "Order Type": "",
  "Price": "",
  "Quantity": "",
  "Side": "",
  "Ticker": "",
  "Time in Force": ""
}'
echo '{
  "Aux Price": "",
  "ContractId": "",
  "Currency": "",
  "CustomerOrderId": "",
  "InstrumentType": "",
  "ListingExchange": "",
  "Order Type": "",
  "Price": "",
  "Quantity": "",
  "Side": "",
  "Ticker": "",
  "Time in Force": ""
}' |  \
  http POST {{baseUrl}}/accounts/:account/order_impact \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "Aux Price": "",\n  "ContractId": "",\n  "Currency": "",\n  "CustomerOrderId": "",\n  "InstrumentType": "",\n  "ListingExchange": "",\n  "Order Type": "",\n  "Price": "",\n  "Quantity": "",\n  "Side": "",\n  "Ticker": "",\n  "Time in Force": ""\n}' \
  --output-document \
  - {{baseUrl}}/accounts/:account/order_impact
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "Aux Price": "",
  "ContractId": "",
  "Currency": "",
  "CustomerOrderId": "",
  "InstrumentType": "",
  "ListingExchange": "",
  "Order Type": "",
  "Price": "",
  "Quantity": "",
  "Side": "",
  "Ticker": "",
  "Time in Force": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/accounts/:account/order_impact")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
DELETE Cancel Order
{{baseUrl}}/accounts/:account/orders/:CustomerOrderId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/accounts/:account/orders/:CustomerOrderId");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/delete "{{baseUrl}}/accounts/:account/orders/:CustomerOrderId")
require "http/client"

url = "{{baseUrl}}/accounts/:account/orders/:CustomerOrderId"

response = HTTP::Client.delete url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Delete,
    RequestUri = new Uri("{{baseUrl}}/accounts/:account/orders/:CustomerOrderId"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/accounts/:account/orders/:CustomerOrderId");
var request = new RestRequest("", Method.Delete);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/accounts/:account/orders/:CustomerOrderId"

	req, _ := http.NewRequest("DELETE", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
DELETE /baseUrl/accounts/:account/orders/:CustomerOrderId HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/accounts/:account/orders/:CustomerOrderId")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/accounts/:account/orders/:CustomerOrderId"))
    .method("DELETE", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/accounts/:account/orders/:CustomerOrderId")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/accounts/:account/orders/:CustomerOrderId")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('DELETE', '{{baseUrl}}/accounts/:account/orders/:CustomerOrderId');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/accounts/:account/orders/:CustomerOrderId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/accounts/:account/orders/:CustomerOrderId';
const options = {method: 'DELETE'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/accounts/:account/orders/:CustomerOrderId',
  method: 'DELETE',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/accounts/:account/orders/:CustomerOrderId")
  .delete(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'DELETE',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/accounts/:account/orders/:CustomerOrderId',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/accounts/:account/orders/:CustomerOrderId'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('DELETE', '{{baseUrl}}/accounts/:account/orders/:CustomerOrderId');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/accounts/:account/orders/:CustomerOrderId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/accounts/:account/orders/:CustomerOrderId';
const options = {method: 'DELETE'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/accounts/:account/orders/:CustomerOrderId"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"DELETE"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/accounts/:account/orders/:CustomerOrderId" in

Client.call `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/accounts/:account/orders/:CustomerOrderId",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "DELETE",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('DELETE', '{{baseUrl}}/accounts/:account/orders/:CustomerOrderId');

echo $response->getBody();
setUrl('{{baseUrl}}/accounts/:account/orders/:CustomerOrderId');
$request->setMethod(HTTP_METH_DELETE);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/accounts/:account/orders/:CustomerOrderId');
$request->setRequestMethod('DELETE');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/accounts/:account/orders/:CustomerOrderId' -Method DELETE 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/accounts/:account/orders/:CustomerOrderId' -Method DELETE 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("DELETE", "/baseUrl/accounts/:account/orders/:CustomerOrderId")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/accounts/:account/orders/:CustomerOrderId"

response = requests.delete(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/accounts/:account/orders/:CustomerOrderId"

response <- VERB("DELETE", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/accounts/:account/orders/:CustomerOrderId")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Delete.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.delete('/baseUrl/accounts/:account/orders/:CustomerOrderId') do |req|
end

puts response.status
puts response.body
use std::str::FromStr;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/accounts/:account/orders/:CustomerOrderId";

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("DELETE").unwrap(), url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request DELETE \
  --url {{baseUrl}}/accounts/:account/orders/:CustomerOrderId
http DELETE {{baseUrl}}/accounts/:account/orders/:CustomerOrderId
wget --quiet \
  --method DELETE \
  --output-document \
  - {{baseUrl}}/accounts/:account/orders/:CustomerOrderId
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/accounts/:account/orders/:CustomerOrderId")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "DELETE"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
PUT Modify Order
{{baseUrl}}/accounts/:account/orders/:CustomerOrderId
BODY json

{
  "Aux Price": "",
  "CustomerOrderId": "",
  "GermanHftAlgo": false,
  "Mifid2Algo": "",
  "Mifid2DecisionMaker": "",
  "Mifid2ExecutionAlgo": "",
  "Mifid2ExecutionTrader": "",
  "Order Type": "",
  "OrigCustomerOrderId": "",
  "Outside RTH": "",
  "Price": "",
  "Quantity": "",
  "Side": "",
  "Time in Force": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/accounts/:account/orders/:CustomerOrderId");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"Aux Price\": \"\",\n  \"CustomerOrderId\": \"\",\n  \"GermanHftAlgo\": false,\n  \"Mifid2Algo\": \"\",\n  \"Mifid2DecisionMaker\": \"\",\n  \"Mifid2ExecutionAlgo\": \"\",\n  \"Mifid2ExecutionTrader\": \"\",\n  \"Order Type\": \"\",\n  \"OrigCustomerOrderId\": \"\",\n  \"Outside RTH\": \"\",\n  \"Price\": \"\",\n  \"Quantity\": \"\",\n  \"Side\": \"\",\n  \"Time in Force\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/put "{{baseUrl}}/accounts/:account/orders/:CustomerOrderId" {:content-type :json
                                                                                     :form-params {:Aux Price ""
                                                                                                   :CustomerOrderId ""
                                                                                                   :GermanHftAlgo false
                                                                                                   :Mifid2Algo ""
                                                                                                   :Mifid2DecisionMaker ""
                                                                                                   :Mifid2ExecutionAlgo ""
                                                                                                   :Mifid2ExecutionTrader ""
                                                                                                   :Order Type ""
                                                                                                   :OrigCustomerOrderId ""
                                                                                                   :Outside RTH ""
                                                                                                   :Price ""
                                                                                                   :Quantity ""
                                                                                                   :Side ""
                                                                                                   :Time in Force ""}})
require "http/client"

url = "{{baseUrl}}/accounts/:account/orders/:CustomerOrderId"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"Aux Price\": \"\",\n  \"CustomerOrderId\": \"\",\n  \"GermanHftAlgo\": false,\n  \"Mifid2Algo\": \"\",\n  \"Mifid2DecisionMaker\": \"\",\n  \"Mifid2ExecutionAlgo\": \"\",\n  \"Mifid2ExecutionTrader\": \"\",\n  \"Order Type\": \"\",\n  \"OrigCustomerOrderId\": \"\",\n  \"Outside RTH\": \"\",\n  \"Price\": \"\",\n  \"Quantity\": \"\",\n  \"Side\": \"\",\n  \"Time in Force\": \"\"\n}"

response = HTTP::Client.put url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Put,
    RequestUri = new Uri("{{baseUrl}}/accounts/:account/orders/:CustomerOrderId"),
    Content = new StringContent("{\n  \"Aux Price\": \"\",\n  \"CustomerOrderId\": \"\",\n  \"GermanHftAlgo\": false,\n  \"Mifid2Algo\": \"\",\n  \"Mifid2DecisionMaker\": \"\",\n  \"Mifid2ExecutionAlgo\": \"\",\n  \"Mifid2ExecutionTrader\": \"\",\n  \"Order Type\": \"\",\n  \"OrigCustomerOrderId\": \"\",\n  \"Outside RTH\": \"\",\n  \"Price\": \"\",\n  \"Quantity\": \"\",\n  \"Side\": \"\",\n  \"Time in Force\": \"\"\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/accounts/:account/orders/:CustomerOrderId");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"Aux Price\": \"\",\n  \"CustomerOrderId\": \"\",\n  \"GermanHftAlgo\": false,\n  \"Mifid2Algo\": \"\",\n  \"Mifid2DecisionMaker\": \"\",\n  \"Mifid2ExecutionAlgo\": \"\",\n  \"Mifid2ExecutionTrader\": \"\",\n  \"Order Type\": \"\",\n  \"OrigCustomerOrderId\": \"\",\n  \"Outside RTH\": \"\",\n  \"Price\": \"\",\n  \"Quantity\": \"\",\n  \"Side\": \"\",\n  \"Time in Force\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/accounts/:account/orders/:CustomerOrderId"

	payload := strings.NewReader("{\n  \"Aux Price\": \"\",\n  \"CustomerOrderId\": \"\",\n  \"GermanHftAlgo\": false,\n  \"Mifid2Algo\": \"\",\n  \"Mifid2DecisionMaker\": \"\",\n  \"Mifid2ExecutionAlgo\": \"\",\n  \"Mifid2ExecutionTrader\": \"\",\n  \"Order Type\": \"\",\n  \"OrigCustomerOrderId\": \"\",\n  \"Outside RTH\": \"\",\n  \"Price\": \"\",\n  \"Quantity\": \"\",\n  \"Side\": \"\",\n  \"Time in Force\": \"\"\n}")

	req, _ := http.NewRequest("PUT", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
PUT /baseUrl/accounts/:account/orders/:CustomerOrderId HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 321

{
  "Aux Price": "",
  "CustomerOrderId": "",
  "GermanHftAlgo": false,
  "Mifid2Algo": "",
  "Mifid2DecisionMaker": "",
  "Mifid2ExecutionAlgo": "",
  "Mifid2ExecutionTrader": "",
  "Order Type": "",
  "OrigCustomerOrderId": "",
  "Outside RTH": "",
  "Price": "",
  "Quantity": "",
  "Side": "",
  "Time in Force": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/accounts/:account/orders/:CustomerOrderId")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"Aux Price\": \"\",\n  \"CustomerOrderId\": \"\",\n  \"GermanHftAlgo\": false,\n  \"Mifid2Algo\": \"\",\n  \"Mifid2DecisionMaker\": \"\",\n  \"Mifid2ExecutionAlgo\": \"\",\n  \"Mifid2ExecutionTrader\": \"\",\n  \"Order Type\": \"\",\n  \"OrigCustomerOrderId\": \"\",\n  \"Outside RTH\": \"\",\n  \"Price\": \"\",\n  \"Quantity\": \"\",\n  \"Side\": \"\",\n  \"Time in Force\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/accounts/:account/orders/:CustomerOrderId"))
    .header("content-type", "application/json")
    .method("PUT", HttpRequest.BodyPublishers.ofString("{\n  \"Aux Price\": \"\",\n  \"CustomerOrderId\": \"\",\n  \"GermanHftAlgo\": false,\n  \"Mifid2Algo\": \"\",\n  \"Mifid2DecisionMaker\": \"\",\n  \"Mifid2ExecutionAlgo\": \"\",\n  \"Mifid2ExecutionTrader\": \"\",\n  \"Order Type\": \"\",\n  \"OrigCustomerOrderId\": \"\",\n  \"Outside RTH\": \"\",\n  \"Price\": \"\",\n  \"Quantity\": \"\",\n  \"Side\": \"\",\n  \"Time in Force\": \"\"\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"Aux Price\": \"\",\n  \"CustomerOrderId\": \"\",\n  \"GermanHftAlgo\": false,\n  \"Mifid2Algo\": \"\",\n  \"Mifid2DecisionMaker\": \"\",\n  \"Mifid2ExecutionAlgo\": \"\",\n  \"Mifid2ExecutionTrader\": \"\",\n  \"Order Type\": \"\",\n  \"OrigCustomerOrderId\": \"\",\n  \"Outside RTH\": \"\",\n  \"Price\": \"\",\n  \"Quantity\": \"\",\n  \"Side\": \"\",\n  \"Time in Force\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/accounts/:account/orders/:CustomerOrderId")
  .put(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/accounts/:account/orders/:CustomerOrderId")
  .header("content-type", "application/json")
  .body("{\n  \"Aux Price\": \"\",\n  \"CustomerOrderId\": \"\",\n  \"GermanHftAlgo\": false,\n  \"Mifid2Algo\": \"\",\n  \"Mifid2DecisionMaker\": \"\",\n  \"Mifid2ExecutionAlgo\": \"\",\n  \"Mifid2ExecutionTrader\": \"\",\n  \"Order Type\": \"\",\n  \"OrigCustomerOrderId\": \"\",\n  \"Outside RTH\": \"\",\n  \"Price\": \"\",\n  \"Quantity\": \"\",\n  \"Side\": \"\",\n  \"Time in Force\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  'Aux Price': '',
  CustomerOrderId: '',
  GermanHftAlgo: false,
  Mifid2Algo: '',
  Mifid2DecisionMaker: '',
  Mifid2ExecutionAlgo: '',
  Mifid2ExecutionTrader: '',
  'Order Type': '',
  OrigCustomerOrderId: '',
  'Outside RTH': '',
  Price: '',
  Quantity: '',
  Side: '',
  'Time in Force': ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PUT', '{{baseUrl}}/accounts/:account/orders/:CustomerOrderId');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/accounts/:account/orders/:CustomerOrderId',
  headers: {'content-type': 'application/json'},
  data: {
    'Aux Price': '',
    CustomerOrderId: '',
    GermanHftAlgo: false,
    Mifid2Algo: '',
    Mifid2DecisionMaker: '',
    Mifid2ExecutionAlgo: '',
    Mifid2ExecutionTrader: '',
    'Order Type': '',
    OrigCustomerOrderId: '',
    'Outside RTH': '',
    Price: '',
    Quantity: '',
    Side: '',
    'Time in Force': ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/accounts/:account/orders/:CustomerOrderId';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"Aux Price":"","CustomerOrderId":"","GermanHftAlgo":false,"Mifid2Algo":"","Mifid2DecisionMaker":"","Mifid2ExecutionAlgo":"","Mifid2ExecutionTrader":"","Order Type":"","OrigCustomerOrderId":"","Outside RTH":"","Price":"","Quantity":"","Side":"","Time in Force":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/accounts/:account/orders/:CustomerOrderId',
  method: 'PUT',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "Aux Price": "",\n  "CustomerOrderId": "",\n  "GermanHftAlgo": false,\n  "Mifid2Algo": "",\n  "Mifid2DecisionMaker": "",\n  "Mifid2ExecutionAlgo": "",\n  "Mifid2ExecutionTrader": "",\n  "Order Type": "",\n  "OrigCustomerOrderId": "",\n  "Outside RTH": "",\n  "Price": "",\n  "Quantity": "",\n  "Side": "",\n  "Time in Force": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"Aux Price\": \"\",\n  \"CustomerOrderId\": \"\",\n  \"GermanHftAlgo\": false,\n  \"Mifid2Algo\": \"\",\n  \"Mifid2DecisionMaker\": \"\",\n  \"Mifid2ExecutionAlgo\": \"\",\n  \"Mifid2ExecutionTrader\": \"\",\n  \"Order Type\": \"\",\n  \"OrigCustomerOrderId\": \"\",\n  \"Outside RTH\": \"\",\n  \"Price\": \"\",\n  \"Quantity\": \"\",\n  \"Side\": \"\",\n  \"Time in Force\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/accounts/:account/orders/:CustomerOrderId")
  .put(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'PUT',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/accounts/:account/orders/:CustomerOrderId',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({
  'Aux Price': '',
  CustomerOrderId: '',
  GermanHftAlgo: false,
  Mifid2Algo: '',
  Mifid2DecisionMaker: '',
  Mifid2ExecutionAlgo: '',
  Mifid2ExecutionTrader: '',
  'Order Type': '',
  OrigCustomerOrderId: '',
  'Outside RTH': '',
  Price: '',
  Quantity: '',
  Side: '',
  'Time in Force': ''
}));
req.end();
const request = require('request');

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/accounts/:account/orders/:CustomerOrderId',
  headers: {'content-type': 'application/json'},
  body: {
    'Aux Price': '',
    CustomerOrderId: '',
    GermanHftAlgo: false,
    Mifid2Algo: '',
    Mifid2DecisionMaker: '',
    Mifid2ExecutionAlgo: '',
    Mifid2ExecutionTrader: '',
    'Order Type': '',
    OrigCustomerOrderId: '',
    'Outside RTH': '',
    Price: '',
    Quantity: '',
    Side: '',
    'Time in Force': ''
  },
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('PUT', '{{baseUrl}}/accounts/:account/orders/:CustomerOrderId');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  'Aux Price': '',
  CustomerOrderId: '',
  GermanHftAlgo: false,
  Mifid2Algo: '',
  Mifid2DecisionMaker: '',
  Mifid2ExecutionAlgo: '',
  Mifid2ExecutionTrader: '',
  'Order Type': '',
  OrigCustomerOrderId: '',
  'Outside RTH': '',
  Price: '',
  Quantity: '',
  Side: '',
  'Time in Force': ''
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/accounts/:account/orders/:CustomerOrderId',
  headers: {'content-type': 'application/json'},
  data: {
    'Aux Price': '',
    CustomerOrderId: '',
    GermanHftAlgo: false,
    Mifid2Algo: '',
    Mifid2DecisionMaker: '',
    Mifid2ExecutionAlgo: '',
    Mifid2ExecutionTrader: '',
    'Order Type': '',
    OrigCustomerOrderId: '',
    'Outside RTH': '',
    Price: '',
    Quantity: '',
    Side: '',
    'Time in Force': ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/accounts/:account/orders/:CustomerOrderId';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"Aux Price":"","CustomerOrderId":"","GermanHftAlgo":false,"Mifid2Algo":"","Mifid2DecisionMaker":"","Mifid2ExecutionAlgo":"","Mifid2ExecutionTrader":"","Order Type":"","OrigCustomerOrderId":"","Outside RTH":"","Price":"","Quantity":"","Side":"","Time in Force":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"Aux Price": @"",
                              @"CustomerOrderId": @"",
                              @"GermanHftAlgo": @NO,
                              @"Mifid2Algo": @"",
                              @"Mifid2DecisionMaker": @"",
                              @"Mifid2ExecutionAlgo": @"",
                              @"Mifid2ExecutionTrader": @"",
                              @"Order Type": @"",
                              @"OrigCustomerOrderId": @"",
                              @"Outside RTH": @"",
                              @"Price": @"",
                              @"Quantity": @"",
                              @"Side": @"",
                              @"Time in Force": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/accounts/:account/orders/:CustomerOrderId"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/accounts/:account/orders/:CustomerOrderId" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"Aux Price\": \"\",\n  \"CustomerOrderId\": \"\",\n  \"GermanHftAlgo\": false,\n  \"Mifid2Algo\": \"\",\n  \"Mifid2DecisionMaker\": \"\",\n  \"Mifid2ExecutionAlgo\": \"\",\n  \"Mifid2ExecutionTrader\": \"\",\n  \"Order Type\": \"\",\n  \"OrigCustomerOrderId\": \"\",\n  \"Outside RTH\": \"\",\n  \"Price\": \"\",\n  \"Quantity\": \"\",\n  \"Side\": \"\",\n  \"Time in Force\": \"\"\n}" in

Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/accounts/:account/orders/:CustomerOrderId",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PUT",
  CURLOPT_POSTFIELDS => json_encode([
    'Aux Price' => '',
    'CustomerOrderId' => '',
    'GermanHftAlgo' => null,
    'Mifid2Algo' => '',
    'Mifid2DecisionMaker' => '',
    'Mifid2ExecutionAlgo' => '',
    'Mifid2ExecutionTrader' => '',
    'Order Type' => '',
    'OrigCustomerOrderId' => '',
    'Outside RTH' => '',
    'Price' => '',
    'Quantity' => '',
    'Side' => '',
    'Time in Force' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('PUT', '{{baseUrl}}/accounts/:account/orders/:CustomerOrderId', [
  'body' => '{
  "Aux Price": "",
  "CustomerOrderId": "",
  "GermanHftAlgo": false,
  "Mifid2Algo": "",
  "Mifid2DecisionMaker": "",
  "Mifid2ExecutionAlgo": "",
  "Mifid2ExecutionTrader": "",
  "Order Type": "",
  "OrigCustomerOrderId": "",
  "Outside RTH": "",
  "Price": "",
  "Quantity": "",
  "Side": "",
  "Time in Force": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/accounts/:account/orders/:CustomerOrderId');
$request->setMethod(HTTP_METH_PUT);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'Aux Price' => '',
  'CustomerOrderId' => '',
  'GermanHftAlgo' => null,
  'Mifid2Algo' => '',
  'Mifid2DecisionMaker' => '',
  'Mifid2ExecutionAlgo' => '',
  'Mifid2ExecutionTrader' => '',
  'Order Type' => '',
  'OrigCustomerOrderId' => '',
  'Outside RTH' => '',
  'Price' => '',
  'Quantity' => '',
  'Side' => '',
  'Time in Force' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'Aux Price' => '',
  'CustomerOrderId' => '',
  'GermanHftAlgo' => null,
  'Mifid2Algo' => '',
  'Mifid2DecisionMaker' => '',
  'Mifid2ExecutionAlgo' => '',
  'Mifid2ExecutionTrader' => '',
  'Order Type' => '',
  'OrigCustomerOrderId' => '',
  'Outside RTH' => '',
  'Price' => '',
  'Quantity' => '',
  'Side' => '',
  'Time in Force' => ''
]));
$request->setRequestUrl('{{baseUrl}}/accounts/:account/orders/:CustomerOrderId');
$request->setRequestMethod('PUT');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/accounts/:account/orders/:CustomerOrderId' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "Aux Price": "",
  "CustomerOrderId": "",
  "GermanHftAlgo": false,
  "Mifid2Algo": "",
  "Mifid2DecisionMaker": "",
  "Mifid2ExecutionAlgo": "",
  "Mifid2ExecutionTrader": "",
  "Order Type": "",
  "OrigCustomerOrderId": "",
  "Outside RTH": "",
  "Price": "",
  "Quantity": "",
  "Side": "",
  "Time in Force": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/accounts/:account/orders/:CustomerOrderId' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "Aux Price": "",
  "CustomerOrderId": "",
  "GermanHftAlgo": false,
  "Mifid2Algo": "",
  "Mifid2DecisionMaker": "",
  "Mifid2ExecutionAlgo": "",
  "Mifid2ExecutionTrader": "",
  "Order Type": "",
  "OrigCustomerOrderId": "",
  "Outside RTH": "",
  "Price": "",
  "Quantity": "",
  "Side": "",
  "Time in Force": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"Aux Price\": \"\",\n  \"CustomerOrderId\": \"\",\n  \"GermanHftAlgo\": false,\n  \"Mifid2Algo\": \"\",\n  \"Mifid2DecisionMaker\": \"\",\n  \"Mifid2ExecutionAlgo\": \"\",\n  \"Mifid2ExecutionTrader\": \"\",\n  \"Order Type\": \"\",\n  \"OrigCustomerOrderId\": \"\",\n  \"Outside RTH\": \"\",\n  \"Price\": \"\",\n  \"Quantity\": \"\",\n  \"Side\": \"\",\n  \"Time in Force\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("PUT", "/baseUrl/accounts/:account/orders/:CustomerOrderId", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/accounts/:account/orders/:CustomerOrderId"

payload = {
    "Aux Price": "",
    "CustomerOrderId": "",
    "GermanHftAlgo": False,
    "Mifid2Algo": "",
    "Mifid2DecisionMaker": "",
    "Mifid2ExecutionAlgo": "",
    "Mifid2ExecutionTrader": "",
    "Order Type": "",
    "OrigCustomerOrderId": "",
    "Outside RTH": "",
    "Price": "",
    "Quantity": "",
    "Side": "",
    "Time in Force": ""
}
headers = {"content-type": "application/json"}

response = requests.put(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/accounts/:account/orders/:CustomerOrderId"

payload <- "{\n  \"Aux Price\": \"\",\n  \"CustomerOrderId\": \"\",\n  \"GermanHftAlgo\": false,\n  \"Mifid2Algo\": \"\",\n  \"Mifid2DecisionMaker\": \"\",\n  \"Mifid2ExecutionAlgo\": \"\",\n  \"Mifid2ExecutionTrader\": \"\",\n  \"Order Type\": \"\",\n  \"OrigCustomerOrderId\": \"\",\n  \"Outside RTH\": \"\",\n  \"Price\": \"\",\n  \"Quantity\": \"\",\n  \"Side\": \"\",\n  \"Time in Force\": \"\"\n}"

encode <- "json"

response <- VERB("PUT", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/accounts/:account/orders/:CustomerOrderId")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Put.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"Aux Price\": \"\",\n  \"CustomerOrderId\": \"\",\n  \"GermanHftAlgo\": false,\n  \"Mifid2Algo\": \"\",\n  \"Mifid2DecisionMaker\": \"\",\n  \"Mifid2ExecutionAlgo\": \"\",\n  \"Mifid2ExecutionTrader\": \"\",\n  \"Order Type\": \"\",\n  \"OrigCustomerOrderId\": \"\",\n  \"Outside RTH\": \"\",\n  \"Price\": \"\",\n  \"Quantity\": \"\",\n  \"Side\": \"\",\n  \"Time in Force\": \"\"\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.put('/baseUrl/accounts/:account/orders/:CustomerOrderId') do |req|
  req.body = "{\n  \"Aux Price\": \"\",\n  \"CustomerOrderId\": \"\",\n  \"GermanHftAlgo\": false,\n  \"Mifid2Algo\": \"\",\n  \"Mifid2DecisionMaker\": \"\",\n  \"Mifid2ExecutionAlgo\": \"\",\n  \"Mifid2ExecutionTrader\": \"\",\n  \"Order Type\": \"\",\n  \"OrigCustomerOrderId\": \"\",\n  \"Outside RTH\": \"\",\n  \"Price\": \"\",\n  \"Quantity\": \"\",\n  \"Side\": \"\",\n  \"Time in Force\": \"\"\n}"
end

puts response.status
puts response.body
use std::str::FromStr;
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/accounts/:account/orders/:CustomerOrderId";

    let payload = json!({
        "Aux Price": "",
        "CustomerOrderId": "",
        "GermanHftAlgo": false,
        "Mifid2Algo": "",
        "Mifid2DecisionMaker": "",
        "Mifid2ExecutionAlgo": "",
        "Mifid2ExecutionTrader": "",
        "Order Type": "",
        "OrigCustomerOrderId": "",
        "Outside RTH": "",
        "Price": "",
        "Quantity": "",
        "Side": "",
        "Time in Force": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request PUT \
  --url {{baseUrl}}/accounts/:account/orders/:CustomerOrderId \
  --header 'content-type: application/json' \
  --data '{
  "Aux Price": "",
  "CustomerOrderId": "",
  "GermanHftAlgo": false,
  "Mifid2Algo": "",
  "Mifid2DecisionMaker": "",
  "Mifid2ExecutionAlgo": "",
  "Mifid2ExecutionTrader": "",
  "Order Type": "",
  "OrigCustomerOrderId": "",
  "Outside RTH": "",
  "Price": "",
  "Quantity": "",
  "Side": "",
  "Time in Force": ""
}'
echo '{
  "Aux Price": "",
  "CustomerOrderId": "",
  "GermanHftAlgo": false,
  "Mifid2Algo": "",
  "Mifid2DecisionMaker": "",
  "Mifid2ExecutionAlgo": "",
  "Mifid2ExecutionTrader": "",
  "Order Type": "",
  "OrigCustomerOrderId": "",
  "Outside RTH": "",
  "Price": "",
  "Quantity": "",
  "Side": "",
  "Time in Force": ""
}' |  \
  http PUT {{baseUrl}}/accounts/:account/orders/:CustomerOrderId \
  content-type:application/json
wget --quiet \
  --method PUT \
  --header 'content-type: application/json' \
  --body-data '{\n  "Aux Price": "",\n  "CustomerOrderId": "",\n  "GermanHftAlgo": false,\n  "Mifid2Algo": "",\n  "Mifid2DecisionMaker": "",\n  "Mifid2ExecutionAlgo": "",\n  "Mifid2ExecutionTrader": "",\n  "Order Type": "",\n  "OrigCustomerOrderId": "",\n  "Outside RTH": "",\n  "Price": "",\n  "Quantity": "",\n  "Side": "",\n  "Time in Force": ""\n}' \
  --output-document \
  - {{baseUrl}}/accounts/:account/orders/:CustomerOrderId
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "Aux Price": "",
  "CustomerOrderId": "",
  "GermanHftAlgo": false,
  "Mifid2Algo": "",
  "Mifid2DecisionMaker": "",
  "Mifid2ExecutionAlgo": "",
  "Mifid2ExecutionTrader": "",
  "Order Type": "",
  "OrigCustomerOrderId": "",
  "Outside RTH": "",
  "Price": "",
  "Quantity": "",
  "Side": "",
  "Time in Force": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/accounts/:account/orders/:CustomerOrderId")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
GET Open Orders
{{baseUrl}}/accounts/:account/orders
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/accounts/:account/orders");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/accounts/:account/orders")
require "http/client"

url = "{{baseUrl}}/accounts/:account/orders"

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/accounts/:account/orders"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/accounts/:account/orders");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/accounts/:account/orders"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/accounts/:account/orders HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/accounts/:account/orders")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/accounts/:account/orders"))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/accounts/:account/orders")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/accounts/:account/orders")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/accounts/:account/orders');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/accounts/:account/orders'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/accounts/:account/orders';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/accounts/:account/orders',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/accounts/:account/orders")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/accounts/:account/orders',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {method: 'GET', url: '{{baseUrl}}/accounts/:account/orders'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/accounts/:account/orders');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {method: 'GET', url: '{{baseUrl}}/accounts/:account/orders'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/accounts/:account/orders';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/accounts/:account/orders"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/accounts/:account/orders" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/accounts/:account/orders",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/accounts/:account/orders');

echo $response->getBody();
setUrl('{{baseUrl}}/accounts/:account/orders');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/accounts/:account/orders');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/accounts/:account/orders' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/accounts/:account/orders' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/accounts/:account/orders")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/accounts/:account/orders"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/accounts/:account/orders"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/accounts/:account/orders")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/accounts/:account/orders') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/accounts/:account/orders";

    let client = reqwest::Client::new();
    let response = client.get(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/accounts/:account/orders
http GET {{baseUrl}}/accounts/:account/orders
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/accounts/:account/orders
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/accounts/:account/orders")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST Place Order
{{baseUrl}}/accounts/:account/orders
BODY json

{
  "Aux Price": "",
  "ContractId": "",
  "Currency": "",
  "CustomerOrderId": "",
  "GermanHftAlgo": false,
  "InstrumentType": "",
  "ListingExchange": "",
  "Mifid2Algo": "",
  "Mifid2DecisionMaker": "",
  "Mifid2ExecutionAlgo": "",
  "Mifid2ExecutionTrader": "",
  "Order Type": "",
  "OrderRestrictions": "",
  "Outside RTH": "",
  "Price": "",
  "Quantity": "",
  "Side": "",
  "Ticker": "",
  "Time in Force": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/accounts/:account/orders");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"Aux Price\": \"\",\n  \"ContractId\": \"\",\n  \"Currency\": \"\",\n  \"CustomerOrderId\": \"\",\n  \"GermanHftAlgo\": false,\n  \"InstrumentType\": \"\",\n  \"ListingExchange\": \"\",\n  \"Mifid2Algo\": \"\",\n  \"Mifid2DecisionMaker\": \"\",\n  \"Mifid2ExecutionAlgo\": \"\",\n  \"Mifid2ExecutionTrader\": \"\",\n  \"Order Type\": \"\",\n  \"OrderRestrictions\": \"\",\n  \"Outside RTH\": \"\",\n  \"Price\": \"\",\n  \"Quantity\": \"\",\n  \"Side\": \"\",\n  \"Ticker\": \"\",\n  \"Time in Force\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/accounts/:account/orders" {:content-type :json
                                                                     :form-params {:Aux Price ""
                                                                                   :ContractId ""
                                                                                   :Currency ""
                                                                                   :CustomerOrderId ""
                                                                                   :GermanHftAlgo false
                                                                                   :InstrumentType ""
                                                                                   :ListingExchange ""
                                                                                   :Mifid2Algo ""
                                                                                   :Mifid2DecisionMaker ""
                                                                                   :Mifid2ExecutionAlgo ""
                                                                                   :Mifid2ExecutionTrader ""
                                                                                   :Order Type ""
                                                                                   :OrderRestrictions ""
                                                                                   :Outside RTH ""
                                                                                   :Price ""
                                                                                   :Quantity ""
                                                                                   :Side ""
                                                                                   :Ticker ""
                                                                                   :Time in Force ""}})
require "http/client"

url = "{{baseUrl}}/accounts/:account/orders"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"Aux Price\": \"\",\n  \"ContractId\": \"\",\n  \"Currency\": \"\",\n  \"CustomerOrderId\": \"\",\n  \"GermanHftAlgo\": false,\n  \"InstrumentType\": \"\",\n  \"ListingExchange\": \"\",\n  \"Mifid2Algo\": \"\",\n  \"Mifid2DecisionMaker\": \"\",\n  \"Mifid2ExecutionAlgo\": \"\",\n  \"Mifid2ExecutionTrader\": \"\",\n  \"Order Type\": \"\",\n  \"OrderRestrictions\": \"\",\n  \"Outside RTH\": \"\",\n  \"Price\": \"\",\n  \"Quantity\": \"\",\n  \"Side\": \"\",\n  \"Ticker\": \"\",\n  \"Time in Force\": \"\"\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/accounts/:account/orders"),
    Content = new StringContent("{\n  \"Aux Price\": \"\",\n  \"ContractId\": \"\",\n  \"Currency\": \"\",\n  \"CustomerOrderId\": \"\",\n  \"GermanHftAlgo\": false,\n  \"InstrumentType\": \"\",\n  \"ListingExchange\": \"\",\n  \"Mifid2Algo\": \"\",\n  \"Mifid2DecisionMaker\": \"\",\n  \"Mifid2ExecutionAlgo\": \"\",\n  \"Mifid2ExecutionTrader\": \"\",\n  \"Order Type\": \"\",\n  \"OrderRestrictions\": \"\",\n  \"Outside RTH\": \"\",\n  \"Price\": \"\",\n  \"Quantity\": \"\",\n  \"Side\": \"\",\n  \"Ticker\": \"\",\n  \"Time in Force\": \"\"\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/accounts/:account/orders");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"Aux Price\": \"\",\n  \"ContractId\": \"\",\n  \"Currency\": \"\",\n  \"CustomerOrderId\": \"\",\n  \"GermanHftAlgo\": false,\n  \"InstrumentType\": \"\",\n  \"ListingExchange\": \"\",\n  \"Mifid2Algo\": \"\",\n  \"Mifid2DecisionMaker\": \"\",\n  \"Mifid2ExecutionAlgo\": \"\",\n  \"Mifid2ExecutionTrader\": \"\",\n  \"Order Type\": \"\",\n  \"OrderRestrictions\": \"\",\n  \"Outside RTH\": \"\",\n  \"Price\": \"\",\n  \"Quantity\": \"\",\n  \"Side\": \"\",\n  \"Ticker\": \"\",\n  \"Time in Force\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/accounts/:account/orders"

	payload := strings.NewReader("{\n  \"Aux Price\": \"\",\n  \"ContractId\": \"\",\n  \"Currency\": \"\",\n  \"CustomerOrderId\": \"\",\n  \"GermanHftAlgo\": false,\n  \"InstrumentType\": \"\",\n  \"ListingExchange\": \"\",\n  \"Mifid2Algo\": \"\",\n  \"Mifid2DecisionMaker\": \"\",\n  \"Mifid2ExecutionAlgo\": \"\",\n  \"Mifid2ExecutionTrader\": \"\",\n  \"Order Type\": \"\",\n  \"OrderRestrictions\": \"\",\n  \"Outside RTH\": \"\",\n  \"Price\": \"\",\n  \"Quantity\": \"\",\n  \"Side\": \"\",\n  \"Ticker\": \"\",\n  \"Time in Force\": \"\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/accounts/:account/orders HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 422

{
  "Aux Price": "",
  "ContractId": "",
  "Currency": "",
  "CustomerOrderId": "",
  "GermanHftAlgo": false,
  "InstrumentType": "",
  "ListingExchange": "",
  "Mifid2Algo": "",
  "Mifid2DecisionMaker": "",
  "Mifid2ExecutionAlgo": "",
  "Mifid2ExecutionTrader": "",
  "Order Type": "",
  "OrderRestrictions": "",
  "Outside RTH": "",
  "Price": "",
  "Quantity": "",
  "Side": "",
  "Ticker": "",
  "Time in Force": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/accounts/:account/orders")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"Aux Price\": \"\",\n  \"ContractId\": \"\",\n  \"Currency\": \"\",\n  \"CustomerOrderId\": \"\",\n  \"GermanHftAlgo\": false,\n  \"InstrumentType\": \"\",\n  \"ListingExchange\": \"\",\n  \"Mifid2Algo\": \"\",\n  \"Mifid2DecisionMaker\": \"\",\n  \"Mifid2ExecutionAlgo\": \"\",\n  \"Mifid2ExecutionTrader\": \"\",\n  \"Order Type\": \"\",\n  \"OrderRestrictions\": \"\",\n  \"Outside RTH\": \"\",\n  \"Price\": \"\",\n  \"Quantity\": \"\",\n  \"Side\": \"\",\n  \"Ticker\": \"\",\n  \"Time in Force\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/accounts/:account/orders"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"Aux Price\": \"\",\n  \"ContractId\": \"\",\n  \"Currency\": \"\",\n  \"CustomerOrderId\": \"\",\n  \"GermanHftAlgo\": false,\n  \"InstrumentType\": \"\",\n  \"ListingExchange\": \"\",\n  \"Mifid2Algo\": \"\",\n  \"Mifid2DecisionMaker\": \"\",\n  \"Mifid2ExecutionAlgo\": \"\",\n  \"Mifid2ExecutionTrader\": \"\",\n  \"Order Type\": \"\",\n  \"OrderRestrictions\": \"\",\n  \"Outside RTH\": \"\",\n  \"Price\": \"\",\n  \"Quantity\": \"\",\n  \"Side\": \"\",\n  \"Ticker\": \"\",\n  \"Time in Force\": \"\"\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"Aux Price\": \"\",\n  \"ContractId\": \"\",\n  \"Currency\": \"\",\n  \"CustomerOrderId\": \"\",\n  \"GermanHftAlgo\": false,\n  \"InstrumentType\": \"\",\n  \"ListingExchange\": \"\",\n  \"Mifid2Algo\": \"\",\n  \"Mifid2DecisionMaker\": \"\",\n  \"Mifid2ExecutionAlgo\": \"\",\n  \"Mifid2ExecutionTrader\": \"\",\n  \"Order Type\": \"\",\n  \"OrderRestrictions\": \"\",\n  \"Outside RTH\": \"\",\n  \"Price\": \"\",\n  \"Quantity\": \"\",\n  \"Side\": \"\",\n  \"Ticker\": \"\",\n  \"Time in Force\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/accounts/:account/orders")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/accounts/:account/orders")
  .header("content-type", "application/json")
  .body("{\n  \"Aux Price\": \"\",\n  \"ContractId\": \"\",\n  \"Currency\": \"\",\n  \"CustomerOrderId\": \"\",\n  \"GermanHftAlgo\": false,\n  \"InstrumentType\": \"\",\n  \"ListingExchange\": \"\",\n  \"Mifid2Algo\": \"\",\n  \"Mifid2DecisionMaker\": \"\",\n  \"Mifid2ExecutionAlgo\": \"\",\n  \"Mifid2ExecutionTrader\": \"\",\n  \"Order Type\": \"\",\n  \"OrderRestrictions\": \"\",\n  \"Outside RTH\": \"\",\n  \"Price\": \"\",\n  \"Quantity\": \"\",\n  \"Side\": \"\",\n  \"Ticker\": \"\",\n  \"Time in Force\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  'Aux Price': '',
  ContractId: '',
  Currency: '',
  CustomerOrderId: '',
  GermanHftAlgo: false,
  InstrumentType: '',
  ListingExchange: '',
  Mifid2Algo: '',
  Mifid2DecisionMaker: '',
  Mifid2ExecutionAlgo: '',
  Mifid2ExecutionTrader: '',
  'Order Type': '',
  OrderRestrictions: '',
  'Outside RTH': '',
  Price: '',
  Quantity: '',
  Side: '',
  Ticker: '',
  'Time in Force': ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/accounts/:account/orders');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/accounts/:account/orders',
  headers: {'content-type': 'application/json'},
  data: {
    'Aux Price': '',
    ContractId: '',
    Currency: '',
    CustomerOrderId: '',
    GermanHftAlgo: false,
    InstrumentType: '',
    ListingExchange: '',
    Mifid2Algo: '',
    Mifid2DecisionMaker: '',
    Mifid2ExecutionAlgo: '',
    Mifid2ExecutionTrader: '',
    'Order Type': '',
    OrderRestrictions: '',
    'Outside RTH': '',
    Price: '',
    Quantity: '',
    Side: '',
    Ticker: '',
    'Time in Force': ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/accounts/:account/orders';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"Aux Price":"","ContractId":"","Currency":"","CustomerOrderId":"","GermanHftAlgo":false,"InstrumentType":"","ListingExchange":"","Mifid2Algo":"","Mifid2DecisionMaker":"","Mifid2ExecutionAlgo":"","Mifid2ExecutionTrader":"","Order Type":"","OrderRestrictions":"","Outside RTH":"","Price":"","Quantity":"","Side":"","Ticker":"","Time in Force":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/accounts/:account/orders',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "Aux Price": "",\n  "ContractId": "",\n  "Currency": "",\n  "CustomerOrderId": "",\n  "GermanHftAlgo": false,\n  "InstrumentType": "",\n  "ListingExchange": "",\n  "Mifid2Algo": "",\n  "Mifid2DecisionMaker": "",\n  "Mifid2ExecutionAlgo": "",\n  "Mifid2ExecutionTrader": "",\n  "Order Type": "",\n  "OrderRestrictions": "",\n  "Outside RTH": "",\n  "Price": "",\n  "Quantity": "",\n  "Side": "",\n  "Ticker": "",\n  "Time in Force": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"Aux Price\": \"\",\n  \"ContractId\": \"\",\n  \"Currency\": \"\",\n  \"CustomerOrderId\": \"\",\n  \"GermanHftAlgo\": false,\n  \"InstrumentType\": \"\",\n  \"ListingExchange\": \"\",\n  \"Mifid2Algo\": \"\",\n  \"Mifid2DecisionMaker\": \"\",\n  \"Mifid2ExecutionAlgo\": \"\",\n  \"Mifid2ExecutionTrader\": \"\",\n  \"Order Type\": \"\",\n  \"OrderRestrictions\": \"\",\n  \"Outside RTH\": \"\",\n  \"Price\": \"\",\n  \"Quantity\": \"\",\n  \"Side\": \"\",\n  \"Ticker\": \"\",\n  \"Time in Force\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/accounts/:account/orders")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/accounts/:account/orders',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({
  'Aux Price': '',
  ContractId: '',
  Currency: '',
  CustomerOrderId: '',
  GermanHftAlgo: false,
  InstrumentType: '',
  ListingExchange: '',
  Mifid2Algo: '',
  Mifid2DecisionMaker: '',
  Mifid2ExecutionAlgo: '',
  Mifid2ExecutionTrader: '',
  'Order Type': '',
  OrderRestrictions: '',
  'Outside RTH': '',
  Price: '',
  Quantity: '',
  Side: '',
  Ticker: '',
  'Time in Force': ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/accounts/:account/orders',
  headers: {'content-type': 'application/json'},
  body: {
    'Aux Price': '',
    ContractId: '',
    Currency: '',
    CustomerOrderId: '',
    GermanHftAlgo: false,
    InstrumentType: '',
    ListingExchange: '',
    Mifid2Algo: '',
    Mifid2DecisionMaker: '',
    Mifid2ExecutionAlgo: '',
    Mifid2ExecutionTrader: '',
    'Order Type': '',
    OrderRestrictions: '',
    'Outside RTH': '',
    Price: '',
    Quantity: '',
    Side: '',
    Ticker: '',
    'Time in Force': ''
  },
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/accounts/:account/orders');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  'Aux Price': '',
  ContractId: '',
  Currency: '',
  CustomerOrderId: '',
  GermanHftAlgo: false,
  InstrumentType: '',
  ListingExchange: '',
  Mifid2Algo: '',
  Mifid2DecisionMaker: '',
  Mifid2ExecutionAlgo: '',
  Mifid2ExecutionTrader: '',
  'Order Type': '',
  OrderRestrictions: '',
  'Outside RTH': '',
  Price: '',
  Quantity: '',
  Side: '',
  Ticker: '',
  'Time in Force': ''
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/accounts/:account/orders',
  headers: {'content-type': 'application/json'},
  data: {
    'Aux Price': '',
    ContractId: '',
    Currency: '',
    CustomerOrderId: '',
    GermanHftAlgo: false,
    InstrumentType: '',
    ListingExchange: '',
    Mifid2Algo: '',
    Mifid2DecisionMaker: '',
    Mifid2ExecutionAlgo: '',
    Mifid2ExecutionTrader: '',
    'Order Type': '',
    OrderRestrictions: '',
    'Outside RTH': '',
    Price: '',
    Quantity: '',
    Side: '',
    Ticker: '',
    'Time in Force': ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/accounts/:account/orders';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"Aux Price":"","ContractId":"","Currency":"","CustomerOrderId":"","GermanHftAlgo":false,"InstrumentType":"","ListingExchange":"","Mifid2Algo":"","Mifid2DecisionMaker":"","Mifid2ExecutionAlgo":"","Mifid2ExecutionTrader":"","Order Type":"","OrderRestrictions":"","Outside RTH":"","Price":"","Quantity":"","Side":"","Ticker":"","Time in Force":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"Aux Price": @"",
                              @"ContractId": @"",
                              @"Currency": @"",
                              @"CustomerOrderId": @"",
                              @"GermanHftAlgo": @NO,
                              @"InstrumentType": @"",
                              @"ListingExchange": @"",
                              @"Mifid2Algo": @"",
                              @"Mifid2DecisionMaker": @"",
                              @"Mifid2ExecutionAlgo": @"",
                              @"Mifid2ExecutionTrader": @"",
                              @"Order Type": @"",
                              @"OrderRestrictions": @"",
                              @"Outside RTH": @"",
                              @"Price": @"",
                              @"Quantity": @"",
                              @"Side": @"",
                              @"Ticker": @"",
                              @"Time in Force": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/accounts/:account/orders"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/accounts/:account/orders" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"Aux Price\": \"\",\n  \"ContractId\": \"\",\n  \"Currency\": \"\",\n  \"CustomerOrderId\": \"\",\n  \"GermanHftAlgo\": false,\n  \"InstrumentType\": \"\",\n  \"ListingExchange\": \"\",\n  \"Mifid2Algo\": \"\",\n  \"Mifid2DecisionMaker\": \"\",\n  \"Mifid2ExecutionAlgo\": \"\",\n  \"Mifid2ExecutionTrader\": \"\",\n  \"Order Type\": \"\",\n  \"OrderRestrictions\": \"\",\n  \"Outside RTH\": \"\",\n  \"Price\": \"\",\n  \"Quantity\": \"\",\n  \"Side\": \"\",\n  \"Ticker\": \"\",\n  \"Time in Force\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/accounts/:account/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([
    'Aux Price' => '',
    'ContractId' => '',
    'Currency' => '',
    'CustomerOrderId' => '',
    'GermanHftAlgo' => null,
    'InstrumentType' => '',
    'ListingExchange' => '',
    'Mifid2Algo' => '',
    'Mifid2DecisionMaker' => '',
    'Mifid2ExecutionAlgo' => '',
    'Mifid2ExecutionTrader' => '',
    'Order Type' => '',
    'OrderRestrictions' => '',
    'Outside RTH' => '',
    'Price' => '',
    'Quantity' => '',
    'Side' => '',
    'Ticker' => '',
    'Time in Force' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/accounts/:account/orders', [
  'body' => '{
  "Aux Price": "",
  "ContractId": "",
  "Currency": "",
  "CustomerOrderId": "",
  "GermanHftAlgo": false,
  "InstrumentType": "",
  "ListingExchange": "",
  "Mifid2Algo": "",
  "Mifid2DecisionMaker": "",
  "Mifid2ExecutionAlgo": "",
  "Mifid2ExecutionTrader": "",
  "Order Type": "",
  "OrderRestrictions": "",
  "Outside RTH": "",
  "Price": "",
  "Quantity": "",
  "Side": "",
  "Ticker": "",
  "Time in Force": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/accounts/:account/orders');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'Aux Price' => '',
  'ContractId' => '',
  'Currency' => '',
  'CustomerOrderId' => '',
  'GermanHftAlgo' => null,
  'InstrumentType' => '',
  'ListingExchange' => '',
  'Mifid2Algo' => '',
  'Mifid2DecisionMaker' => '',
  'Mifid2ExecutionAlgo' => '',
  'Mifid2ExecutionTrader' => '',
  'Order Type' => '',
  'OrderRestrictions' => '',
  'Outside RTH' => '',
  'Price' => '',
  'Quantity' => '',
  'Side' => '',
  'Ticker' => '',
  'Time in Force' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'Aux Price' => '',
  'ContractId' => '',
  'Currency' => '',
  'CustomerOrderId' => '',
  'GermanHftAlgo' => null,
  'InstrumentType' => '',
  'ListingExchange' => '',
  'Mifid2Algo' => '',
  'Mifid2DecisionMaker' => '',
  'Mifid2ExecutionAlgo' => '',
  'Mifid2ExecutionTrader' => '',
  'Order Type' => '',
  'OrderRestrictions' => '',
  'Outside RTH' => '',
  'Price' => '',
  'Quantity' => '',
  'Side' => '',
  'Ticker' => '',
  'Time in Force' => ''
]));
$request->setRequestUrl('{{baseUrl}}/accounts/:account/orders');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/accounts/:account/orders' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "Aux Price": "",
  "ContractId": "",
  "Currency": "",
  "CustomerOrderId": "",
  "GermanHftAlgo": false,
  "InstrumentType": "",
  "ListingExchange": "",
  "Mifid2Algo": "",
  "Mifid2DecisionMaker": "",
  "Mifid2ExecutionAlgo": "",
  "Mifid2ExecutionTrader": "",
  "Order Type": "",
  "OrderRestrictions": "",
  "Outside RTH": "",
  "Price": "",
  "Quantity": "",
  "Side": "",
  "Ticker": "",
  "Time in Force": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/accounts/:account/orders' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "Aux Price": "",
  "ContractId": "",
  "Currency": "",
  "CustomerOrderId": "",
  "GermanHftAlgo": false,
  "InstrumentType": "",
  "ListingExchange": "",
  "Mifid2Algo": "",
  "Mifid2DecisionMaker": "",
  "Mifid2ExecutionAlgo": "",
  "Mifid2ExecutionTrader": "",
  "Order Type": "",
  "OrderRestrictions": "",
  "Outside RTH": "",
  "Price": "",
  "Quantity": "",
  "Side": "",
  "Ticker": "",
  "Time in Force": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"Aux Price\": \"\",\n  \"ContractId\": \"\",\n  \"Currency\": \"\",\n  \"CustomerOrderId\": \"\",\n  \"GermanHftAlgo\": false,\n  \"InstrumentType\": \"\",\n  \"ListingExchange\": \"\",\n  \"Mifid2Algo\": \"\",\n  \"Mifid2DecisionMaker\": \"\",\n  \"Mifid2ExecutionAlgo\": \"\",\n  \"Mifid2ExecutionTrader\": \"\",\n  \"Order Type\": \"\",\n  \"OrderRestrictions\": \"\",\n  \"Outside RTH\": \"\",\n  \"Price\": \"\",\n  \"Quantity\": \"\",\n  \"Side\": \"\",\n  \"Ticker\": \"\",\n  \"Time in Force\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/accounts/:account/orders", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/accounts/:account/orders"

payload = {
    "Aux Price": "",
    "ContractId": "",
    "Currency": "",
    "CustomerOrderId": "",
    "GermanHftAlgo": False,
    "InstrumentType": "",
    "ListingExchange": "",
    "Mifid2Algo": "",
    "Mifid2DecisionMaker": "",
    "Mifid2ExecutionAlgo": "",
    "Mifid2ExecutionTrader": "",
    "Order Type": "",
    "OrderRestrictions": "",
    "Outside RTH": "",
    "Price": "",
    "Quantity": "",
    "Side": "",
    "Ticker": "",
    "Time in Force": ""
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/accounts/:account/orders"

payload <- "{\n  \"Aux Price\": \"\",\n  \"ContractId\": \"\",\n  \"Currency\": \"\",\n  \"CustomerOrderId\": \"\",\n  \"GermanHftAlgo\": false,\n  \"InstrumentType\": \"\",\n  \"ListingExchange\": \"\",\n  \"Mifid2Algo\": \"\",\n  \"Mifid2DecisionMaker\": \"\",\n  \"Mifid2ExecutionAlgo\": \"\",\n  \"Mifid2ExecutionTrader\": \"\",\n  \"Order Type\": \"\",\n  \"OrderRestrictions\": \"\",\n  \"Outside RTH\": \"\",\n  \"Price\": \"\",\n  \"Quantity\": \"\",\n  \"Side\": \"\",\n  \"Ticker\": \"\",\n  \"Time in Force\": \"\"\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/accounts/:account/orders")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"Aux Price\": \"\",\n  \"ContractId\": \"\",\n  \"Currency\": \"\",\n  \"CustomerOrderId\": \"\",\n  \"GermanHftAlgo\": false,\n  \"InstrumentType\": \"\",\n  \"ListingExchange\": \"\",\n  \"Mifid2Algo\": \"\",\n  \"Mifid2DecisionMaker\": \"\",\n  \"Mifid2ExecutionAlgo\": \"\",\n  \"Mifid2ExecutionTrader\": \"\",\n  \"Order Type\": \"\",\n  \"OrderRestrictions\": \"\",\n  \"Outside RTH\": \"\",\n  \"Price\": \"\",\n  \"Quantity\": \"\",\n  \"Side\": \"\",\n  \"Ticker\": \"\",\n  \"Time in Force\": \"\"\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/accounts/:account/orders') do |req|
  req.body = "{\n  \"Aux Price\": \"\",\n  \"ContractId\": \"\",\n  \"Currency\": \"\",\n  \"CustomerOrderId\": \"\",\n  \"GermanHftAlgo\": false,\n  \"InstrumentType\": \"\",\n  \"ListingExchange\": \"\",\n  \"Mifid2Algo\": \"\",\n  \"Mifid2DecisionMaker\": \"\",\n  \"Mifid2ExecutionAlgo\": \"\",\n  \"Mifid2ExecutionTrader\": \"\",\n  \"Order Type\": \"\",\n  \"OrderRestrictions\": \"\",\n  \"Outside RTH\": \"\",\n  \"Price\": \"\",\n  \"Quantity\": \"\",\n  \"Side\": \"\",\n  \"Ticker\": \"\",\n  \"Time in Force\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/accounts/:account/orders";

    let payload = json!({
        "Aux Price": "",
        "ContractId": "",
        "Currency": "",
        "CustomerOrderId": "",
        "GermanHftAlgo": false,
        "InstrumentType": "",
        "ListingExchange": "",
        "Mifid2Algo": "",
        "Mifid2DecisionMaker": "",
        "Mifid2ExecutionAlgo": "",
        "Mifid2ExecutionTrader": "",
        "Order Type": "",
        "OrderRestrictions": "",
        "Outside RTH": "",
        "Price": "",
        "Quantity": "",
        "Side": "",
        "Ticker": "",
        "Time in Force": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/accounts/:account/orders \
  --header 'content-type: application/json' \
  --data '{
  "Aux Price": "",
  "ContractId": "",
  "Currency": "",
  "CustomerOrderId": "",
  "GermanHftAlgo": false,
  "InstrumentType": "",
  "ListingExchange": "",
  "Mifid2Algo": "",
  "Mifid2DecisionMaker": "",
  "Mifid2ExecutionAlgo": "",
  "Mifid2ExecutionTrader": "",
  "Order Type": "",
  "OrderRestrictions": "",
  "Outside RTH": "",
  "Price": "",
  "Quantity": "",
  "Side": "",
  "Ticker": "",
  "Time in Force": ""
}'
echo '{
  "Aux Price": "",
  "ContractId": "",
  "Currency": "",
  "CustomerOrderId": "",
  "GermanHftAlgo": false,
  "InstrumentType": "",
  "ListingExchange": "",
  "Mifid2Algo": "",
  "Mifid2DecisionMaker": "",
  "Mifid2ExecutionAlgo": "",
  "Mifid2ExecutionTrader": "",
  "Order Type": "",
  "OrderRestrictions": "",
  "Outside RTH": "",
  "Price": "",
  "Quantity": "",
  "Side": "",
  "Ticker": "",
  "Time in Force": ""
}' |  \
  http POST {{baseUrl}}/accounts/:account/orders \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "Aux Price": "",\n  "ContractId": "",\n  "Currency": "",\n  "CustomerOrderId": "",\n  "GermanHftAlgo": false,\n  "InstrumentType": "",\n  "ListingExchange": "",\n  "Mifid2Algo": "",\n  "Mifid2DecisionMaker": "",\n  "Mifid2ExecutionAlgo": "",\n  "Mifid2ExecutionTrader": "",\n  "Order Type": "",\n  "OrderRestrictions": "",\n  "Outside RTH": "",\n  "Price": "",\n  "Quantity": "",\n  "Side": "",\n  "Ticker": "",\n  "Time in Force": ""\n}' \
  --output-document \
  - {{baseUrl}}/accounts/:account/orders
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "Aux Price": "",
  "ContractId": "",
  "Currency": "",
  "CustomerOrderId": "",
  "GermanHftAlgo": false,
  "InstrumentType": "",
  "ListingExchange": "",
  "Mifid2Algo": "",
  "Mifid2DecisionMaker": "",
  "Mifid2ExecutionAlgo": "",
  "Mifid2ExecutionTrader": "",
  "Order Type": "",
  "OrderRestrictions": "",
  "Outside RTH": "",
  "Price": "",
  "Quantity": "",
  "Side": "",
  "Ticker": "",
  "Time in Force": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/accounts/:account/orders")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
GET Return specific order info
{{baseUrl}}/accounts/:account/orders/:CustomerOrderId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/accounts/:account/orders/:CustomerOrderId");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/accounts/:account/orders/:CustomerOrderId")
require "http/client"

url = "{{baseUrl}}/accounts/:account/orders/:CustomerOrderId"

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/accounts/:account/orders/:CustomerOrderId"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/accounts/:account/orders/:CustomerOrderId");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/accounts/:account/orders/:CustomerOrderId"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/accounts/:account/orders/:CustomerOrderId HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/accounts/:account/orders/:CustomerOrderId")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/accounts/:account/orders/:CustomerOrderId"))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/accounts/:account/orders/:CustomerOrderId")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/accounts/:account/orders/:CustomerOrderId")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/accounts/:account/orders/:CustomerOrderId');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/accounts/:account/orders/:CustomerOrderId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/accounts/:account/orders/:CustomerOrderId';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/accounts/:account/orders/:CustomerOrderId',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/accounts/:account/orders/:CustomerOrderId")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/accounts/:account/orders/:CustomerOrderId',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {
  method: 'GET',
  url: '{{baseUrl}}/accounts/:account/orders/:CustomerOrderId'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/accounts/:account/orders/:CustomerOrderId');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'GET',
  url: '{{baseUrl}}/accounts/:account/orders/:CustomerOrderId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/accounts/:account/orders/:CustomerOrderId';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/accounts/:account/orders/:CustomerOrderId"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/accounts/:account/orders/:CustomerOrderId" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/accounts/:account/orders/:CustomerOrderId",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/accounts/:account/orders/:CustomerOrderId');

echo $response->getBody();
setUrl('{{baseUrl}}/accounts/:account/orders/:CustomerOrderId');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/accounts/:account/orders/:CustomerOrderId');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/accounts/:account/orders/:CustomerOrderId' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/accounts/:account/orders/:CustomerOrderId' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/accounts/:account/orders/:CustomerOrderId")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/accounts/:account/orders/:CustomerOrderId"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/accounts/:account/orders/:CustomerOrderId"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/accounts/:account/orders/:CustomerOrderId")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/accounts/:account/orders/:CustomerOrderId') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/accounts/:account/orders/:CustomerOrderId";

    let client = reqwest::Client::new();
    let response = client.get(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/accounts/:account/orders/:CustomerOrderId
http GET {{baseUrl}}/accounts/:account/orders/:CustomerOrderId
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/accounts/:account/orders/:CustomerOrderId
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/accounts/:account/orders/:CustomerOrderId")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
GET Returns trades in account
{{baseUrl}}/accounts/:account/trades
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/accounts/:account/trades");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/accounts/:account/trades")
require "http/client"

url = "{{baseUrl}}/accounts/:account/trades"

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/accounts/:account/trades"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/accounts/:account/trades");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/accounts/:account/trades"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/accounts/:account/trades HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/accounts/:account/trades")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/accounts/:account/trades"))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/accounts/:account/trades")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/accounts/:account/trades")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/accounts/:account/trades');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/accounts/:account/trades'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/accounts/:account/trades';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/accounts/:account/trades',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/accounts/:account/trades")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/accounts/:account/trades',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {method: 'GET', url: '{{baseUrl}}/accounts/:account/trades'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/accounts/:account/trades');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {method: 'GET', url: '{{baseUrl}}/accounts/:account/trades'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/accounts/:account/trades';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/accounts/:account/trades"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/accounts/:account/trades" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/accounts/:account/trades",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/accounts/:account/trades');

echo $response->getBody();
setUrl('{{baseUrl}}/accounts/:account/trades');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/accounts/:account/trades');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/accounts/:account/trades' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/accounts/:account/trades' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/accounts/:account/trades")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/accounts/:account/trades"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/accounts/:account/trades"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/accounts/:account/trades")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/accounts/:account/trades') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/accounts/:account/trades";

    let client = reqwest::Client::new();
    let response = client.get(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/accounts/:account/trades
http GET {{baseUrl}}/accounts/:account/trades
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/accounts/:account/trades
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/accounts/:account/trades")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()