Configure Any Endpoint. Copy the Code. Ship.

Pick a TradeWatch endpoint, fill in your parameters, and get production-ready code in 9 languages — ready to paste directly into your application.

Generate ready-to-run code in 9 languages

cURL

Shell-ready commands for quick testing and CI/CD scripts

JavaScript

ES6 fetch snippets for Node.js and browser environments

Python

Clean snippets using the official tradewatch SDK

Go

Idiomatic Go code ready to drop into your service

Java

Spring-compatible request examples out of the box

C# / .NET

HttpClient and SDK examples for .NET applications

PHP

Composer-compatible snippets with Guzzle support

Ruby

Net::HTTP and Faraday examples for Rails and Rack

Angular

TypeScript HttpClient snippets for Angular services

From browser to your codebase in seconds

The API Builder is a code generator with a UI. Configure any endpoint visually, then copy the generated snippet and drop it into your application — zero rewriting needed.

1Configure
GET/crypto/quotes
symbols
BTC/USD,ETH/USD
precision
2

Browse the full OpenAPI spec, select an endpoint, and fill in your parameters with guided validation.

2Generate
cURLPythonJSGo
import tradewatch
client = tradewatch.Client(
api_key="tw_live_••••••"
)
result = client.crypto.get_quotes(
symbols="BTC/USD,ETH/USD",
precision=2
)

Switch between 9 languages. The snippet reflects your exact inputs — endpoint, parameters, and API key — nothing to change.

3Use in your app
market_data.py
# your existing code
import pandas as pd
# ↓ pasted from API Builder
import tradewatch
client = tradewatch.Client(
api_key="tw_live_••••••"
)
result = client.crypto.get_quotes(...)
df = pd.DataFrame(result)

Paste it into your script, service, or notebook. The code runs as-is — no SDK setup guides to follow, no parameter mapping to figure out.

Everything you need to understand the API

The API Builder packages the entire OpenAPI specification into an interactive, three-panel workspace. Browse endpoints, craft requests, inspect responses, and copy production code — without leaving the dashboard.

Browse Every Endpoint

All endpoints are catalogued from the OpenAPI spec and grouped by asset class — Crypto, Forex, Stocks, Commodities, Indices, and Account. Full-text search finds the right one instantly.

Search endpoints
Endpoints
Recent Requests
Currencies
7
GET
/currencies/{symbol}/ohlcGet Historical Ohlc
GET
/currencies/{symbol}/ticksGet Historical Ticks
GET
/currencies/convert/{from}/{to}Conversion
GET
/currencies/insightsGet Insights
GET
/currencies/quoteLast Quote

Copy Code Into Your Application

Every snippet is generated from your exact parameter inputs and includes your real API key. Pick your language, click copy, and paste it straight into your Python script, Node service, Go microservice, or any other project — no editing required.

JavaScript
Run Code
Maximize
Copy
1const response = await fetch('https://api.tradewatch.io/currencies/EURUSD/ohlc?resolution=5&start=1773360000&end=1773964800', {
2method: 'GET',
3headers: {
4'api-key': 'dBRMDIIptgcl6S8Wo5UCbFzGAqhMYvtv',
5'Accept': 'application/json'
6}
7});"
8 
9const data = await response.json();
10console.log(data);

Run It Before You Ship It

Hit Run Code and your snippet executes inside TradeWatch's sandboxed runtime — real API, real data, zero setup on your machine. Verify the output looks right, then paste the code into your app with confidence.

TradeWatch Sandbox
Live
const data = await fetch('…/EURUSD/ohlc');
console.log(data);
▶ Executing in TradeWatch sandbox…
✓ Connected to runtime
✓ Authenticated via api-key
✓ GET /currencies/EURUSD/ohlc — 200 OK (38ms)
 
Output:
{ "o": 1.0821, "h": 1.0854,
"l": 1.0817, "c": 1.0849 }

Instant Response Inspection

See the full JSON response with syntax highlighting, HTTP status, response time, and headers — all in the same window. No separate HTTP client required.

200 OK42ms
ResponseHeadersCode
{
"status": "ok",
"count": 2847,
"data": [
{ "symbol": "BTC/USD",
"price": 67284.50 }
]
}

Persistent Request History

Every request you send is saved with its parameters, status code, and response time. Jump back to any previous call to re-run it or compare responses.

Recent Requests
GET/crypto/symbols2002s ago
GET/currencies/quotes2001m ago
GET/stocks/markets/status4013m ago
GET/commodities/types2005m ago

A three-panel workflow for every request

The API Builder follows the natural flow of building an API request: pick an endpoint, configure the parameters, then inspect the result and grab the code.

Search endpoints…
Crypto
GET/crypto/symbols
GET/crypto/quotes
GET/crypto/history
Forex
GET/currencies/quotes
GET/currencies/pairs
Stocks
GET/stocks/markets/status
GET/stocks/quotes

Start exploring the API in minutes