Skip to main content

Public API · v1

Trade gold with code

With a personal API key, get live prices, check your balances and place spot or limit orders. For trading bots, dashboards and integrations with your own systems.

python
import os, requests

BASE = "https://service.talano.ir/api/public/v1"
s = requests.Session()
s.headers["X-API-Key"] = os.environ["TALANO_API_KEY"]

market = next(m for m in s.get(f"{BASE}/markets/").json()
if m["symbol"] == "MLG/TMN")
price = s.get(f"{BASE}/markets/{market['id']}/price/").json()
print("buy per mg:", price["buy"]["price"])
curl
curl -s -H "X-API-Key: $TALANO_API_KEY" \
https://service.talano.ir/api/public/v1/markets/
Market
MLG/TMN
Gold unit
mg
Quote validity
30 s
Auth
X-API-Key

How an order works

  1. GET /markets/Find the market ID
  2. POST /quotes/Lock the price for 30 seconds
  3. POST /orders/Place the order with a client_id
Full quote → order guide →