API Documentation

TradeWise API Güçlü. Güvenli. Basit.

TradeWise API ile Auth ve UserManagement servislerine kolayca erişin. Kapsamlı dokümantasyon, canlı test arayüzü ve geliştirici araçları ile projelerinizi hızla geliştirin.

Hızlı Başlangıç

API'yi kullanmaya başlamak için sadece birkaç adım

🔑

1. API Anahtarı Al

TradeWise hesabınızla giriş yapın ve API anahtarınızı alın

API Anahtarı Gerekli
📖

2. Dokümantasyonu İncele

Auth ve UserManagement endpointlerini keşfedin

Dokümantasyonu Gör
🚀

3. Test Et ve Geliştir

API test arayüzü ile isteklerinizi test edin

Test Et

API Dokümantasyonu

TradeWise API endpointleri ve kullanım örnekleri

API Genel Bakış

Base URL

https://api.tradewise.com.tr

Authentication

Bearer Token (JWT)

Rate Limit

1000 req/hour

API Durumu

Tüm servisler aktif ve çalışır durumda

Operational

Hızlı Başlangıç

1

API Anahtarınızı Alın

TradeWise hesabınızda API anahtarınızı oluşturun

curl -X POST https://api.tradewise.com.tr/api/Auth/login \
  -H "Content-Type: application/json" \
  -d '{"username": "your_username", "password": "your_password"}'
2

Token'ı Kullanın

Aldığınız token'ı Authorization header'ında kullanın

curl -X GET https://api.tradewise.com.tr/api/UserPlans/123 \
  -H "Authorization: Bearer YOUR_TOKEN"
🔐
Auth Service
Operational
👤
User Management
Operational
💼
Accounts Service
Operational
📊
Orders Service
Operational

🔐 Authentication Service

Kullanıcı kimlik doğrulama ve yetkilendirme işlemleri

v1.0 Operational
POST /api/Auth/login

Kullanıcı girişi için endpoint

Request Body:
{ "username": "string", "password": "string" }

ℹ️ Not: IP adresi sistem tarafından otomatik olarak algılanır, request body'de belirtilmesine gerek yoktur.

Response:
{ "success": true, "data": { "token": "string", "refreshToken": "string", "expiresIn": 3600, "user": { "userId": 123, "username": "string", "email": "string" } }, "message": "Login successful" }
POST /api/Auth/register

Yeni kullanıcı kaydı için endpoint

Request Body:
{ "username": "string", "email": "string", "password": "string", "firstName": "string", "lastName": "string", "phoneNumber": "string", "isAdminCreated": false, "requireEmailConfirmation": true }
POST /api/Auth/refresh

Token yenileme için endpoint

Request Body:
{ "refreshToken": "string" }

👤 User Management Service

Kullanıcı bilgileri, plan yönetimi ve profil işlemleri

v1.0 Operational
POST /api/UserPlans/assign

Kullanıcıya plan atama endpoint

Request Body:
{ "userId": 123, "planId": 2, "billingPeriod": "monthly", "isActive": true, "startDate": "2024-01-01T00:00:00Z", "nextPaymentDate": "2024-02-01T00:00:00Z", "payTrCardToken": "string", "country": "string", "city": "string", "fullAddress": "string", "amount": 150000 }
GET /api/UserPlans/{userId}

Kullanıcının planlarını getirme endpoint

Response:
{ "success": true, "data": [ { "planId": 2, "planName": "Pro", "billingPeriod": "monthly", "isActive": true, "startDate": "2024-01-01T00:00:00Z", "nextPaymentDate": "2024-02-01T00:00:00Z", "amount": 150000 } ] }
PUT /api/Users/update-address

Kullanıcı adres bilgilerini güncelleme endpoint

Request Body:
{ "userId": 123, "country": "string", "city": "string", "fullAddress": "string" }

💼 Accounts Service

Trading hesap bilgileri, pozisyonlar ve günlük emirler

v1.0 Operational
POST /api/v1/accounts/daily-orders

Belirli bir hesaba ait günlük (bugün açılan) tüm emirleri getirme endpoint

Request Body:
{ "brokerageEntityId": "01JM8Z6RS8YCN3WQ4HTVBX2PFK", "accountNumber": "12345678" }
Response:
{ "success": true, "data": [ { "orderNo": "123456789", "symbol": "ASELS", "quantity": 100, "price": 75.50, "side": "BUY", "orderType": "LIMIT", "status": "EXECUTED", "orderTime": "2026-02-10T09:30:00Z" }, { "orderNo": "123456790", "symbol": "FROTO", "quantity": 50, "price": 101.25, "side": "SELL", "orderType": "MARKET", "status": "PENDING", "orderTime": "2026-02-10T10:15:00Z" } ], "message": "Daily orders retrieved successfully", "timestamp": "2026-02-10T10:30:00Z" }
POST /api/v1/orders

Yeni emir gönderme endpoint

Request Body:
{ "accountEntityId": "01JM8Z4KPN2HFQR9W7VTXE5GAM", "brokerageEntityId": "01JM8Z6RS8YCN3WQ4HTVBX2PFK", "symbol": "FROTO", "quantity": 100, "buySell": 1, "orderType": 1, "price": 101.50 }

📝 Alanlar:

  • accountEntityId: Hesap ID (ULID formatı, zorunlu)
  • brokerageEntityId: Aracı kurum ID (ULID formatı, zorunlu)
  • symbol: Hisse kodu (zorunlu)
  • quantity: Miktar (zorunlu)
  • buySell: 1=Alış, 2=Satış (zorunlu)
  • orderType: 1=Limit, 2=Piyasa (zorunlu)
  • price: Fiyat (limit için zorunlu, piyasa için 0)
Response:
{ "success": true, "data": { "symbol": "FROTO", "quantity": 100, "buySell": 1, "orderNo": "123456789", "orderStatus": 2 }, "message": "Order sent successfully", "timestamp": "2026-02-15T10:30:00Z" }
POST /api/v1/orders/chain

Zincir emir (koşullu emir) gönderme endpoint

Zincir Emir Nedir? Bir referans emir gerçekleştiğinde otomatik olarak devreye giren koşullu emirdir.

Request Body:
{ "accountEntityId": "01JM8Z4KPN2HFQR9W7VTXE5GAM", "brokerageEntityId": "01JM8Z6RS8YCN3WQ4HTVBX2PFK", "symbol": "ADESE", "quantity": 100, "buySell": 1, "orderType": 1, "price": 1.50, "referenceOrderNo": "305344701" }

📝 Alanlar:

  • accountEntityId: Hesap ID (ULID formatı, zorunlu)
  • brokerageEntityId: Aracı kurum ID (ULID formatı, zorunlu)
  • symbol: Hisse kodu (zorunlu)
  • quantity: Miktar (zorunlu)
  • buySell: 1=Alış, 2=Satış (zorunlu)
  • orderType: 1=Limit, 2=Piyasa (zorunlu)
  • price: Fiyat (zorunlu)
  • referenceOrderNo: Bağlı olunacak emir no (zorunlu)
Response:
{ "success": true, "data": { "symbol": "ADESE", "quantity": 100, "buySell": 1, "orderNo": "123456790", "orderStatus": 2 }, "message": "Chain order sent successfully", "timestamp": "2026-02-15T10:30:00Z" }
POST /api/v1/orders/cancel

Emir iptal etme endpoint

Request Body:
{ "accountEntityId": "01JM8Z4KPN2HFQR9W7VTXE5GAM", "brokerageEntityId": "01JM8Z6RS8YCN3WQ4HTVBX2PFK", "orderNo": "123456789", "symbol": "FROTO" }
Response:
{ "success": true, "message": "Order cancelled successfully", "timestamp": "2026-02-15T10:30:00Z" }
POST /api/v1/accounts/login

Trading hesabına giriş yapma endpoint

Request Body:
{ "accountEntityId": "01JM8Z4KPN2HFQR9W7VTXE5GAM", "brokerageEntityId": "01JM8Z6RS8YCN3WQ4HTVBX2PFK", "password": "your_account_password" }

ℹ️ Not: IP adresi sistem tarafından otomatik olarak algılanır, request body'de belirtilmesine gerek yoktur.

Response:
{ "success": true, "data": { "sessionId": "SESSION123456", "loginTime": "2026-02-10T09:30:00Z" }, "message": "Account login successful", "timestamp": "2026-02-10T09:30:00Z" }

📊 Orders Service

Emir gönderme, zincir emir ve iptal işlemleri

v1.0 Operational

📋 Emir işlemleri için yukarıdaki Accounts Service bölümündeki endpoint dokümantasyonlarına bakabilirsiniz.

API Test Arayüzü

API endpointlerinizi canlı olarak test edin

API Test Konsolu

API endpointlerinizi canlı olarak test edin ve yanıtları görün

📤 İstek Gönder

Token otomatik olarak Authorization header'ında kullanılacak

📥 Yanıt
Hazır

İstek gönderildiğinde yanıt burada görünecek...

SDK'lar ve Kütüphaneler

Favori programlama diliniz için SDK'lar

🐍

Python SDK

Python için resmi TradeWise SDK

pip install tradewise-sdk
Dokümantasyon
🟨

JavaScript SDK

Node.js ve browser için SDK

npm install tradewise-sdk
Dokümantasyon
🔷

C# SDK

.NET için resmi SDK

dotnet add package TradeWise.SDK
Dokümantasyon

Yardıma mı İhtiyacınız Var?

API kullanımı ile ilgili sorularınız için bizimle iletişime geçin