Entitas SmartTrade (SmartTrade entity)

Entitas SmartTrade adalah model data inti yang mewakili pesanan pintar pada Quentrade. Model ini merangkum seluruh siklus hidup pembukaan posisi, take profit bertingkat, pemicu stop loss berkondisi, tahapan pengurangan dana, serta metrik eksekusi perdagangan secara real-time.

Atribut

18
idinteger

ID unik Quentrade untuk entitas SmartTrade ini.

pairstring

Pasangan perdagangan dalam format Quentrade (contoh: USDT_DOGE, BTC_USDT).

instantboolean

Menunjukkan apakah Simple Buy atau Simple Sale langsung dieksekusi (true) atau SmartTrade bersyarat (false).

accountobject

Rincian mengenai akun bursa pengguna tempat perdagangan ini dibuat.

statusobject

Status umum siklus perdagangan dan deskripsinya untuk entitas SmartTrade ini.

leverageobject

Pengaturan leverage yang diterapkan pada SmartTrade margin atau futures.

positionobject

Pengaturan lengkap entri posisi, jenis pesanan, unit kuantitas, dan harga.

take_profitobject

Konfigurasi tangga Take Profit multi-target dan trailing take profit.

stop_lossobject

Pengaturan pesanan protektif Stop Loss, trailing SL, dan pemicu batas waktu.

reduce_fundsobject

Konfigurasi dan riwayat langkah pengurangan dana posisi.

market_closeobject

Rincian pesanan penutupan pasar langsung jika posisi diakhiri pada kurs pasar saat itu.

notestring

Catatan khusus opsional yang dilampirkan oleh pengguna pada SmartTrade ini.

note_rawstring

String mentah tanpa pemformatan dari catatan pengguna.

skip_enter_stepboolean

Menunjukkan apakah langkah pembukaan posisi dilewati (digunakan untuk smart_sell atau smart_buy pada aset yang sudah dimiliki).

dataobject

Status real-time, aksi yang tersedia, harga rata-rata, dan metrik volume.

profitobject

Metrik keuntungan & kerugian (PnL) terperinci untuk SmartTrade ini.

marginobject

Rincian alokasi margin untuk perdagangan dengan leverage.

is_position_not_filledboolean

Menunjukkan apakah entri posisi belum terisi.

Matriks Jenis SmartTrade

Jenis SmartTrade ditentukan berdasarkan kombinasi parameter instant, skip_enter_step, dan position.type.

Nilai Jenisinstantskip_enter_stepposition.typeDeskripsi
simple_buytruefalsebuyPembelian pasar/limit instan tanpa aturan Take Profit atau Stop Loss.
simple_selltruefalsesellPenjualan pasar/limit instan tanpa aturan Take Profit atau Stop Loss.
smart_sellfalsetruebuyMenjual aset spot/margin long yang ada dengan Take Profit dan Stop Loss, tanpa membuka order baru.
smart_buyfalsetruesellMenutup posisi futures/margin short yang ada dengan TP dan SL, tanpa membuka order baru.
smart_tradefalsefalsebuyPerdagangan long penuh: mengeksekusi order entri baru ditambah TP bertingkat dan SL opsional.
smart_coverfalsefalsesellPerdagangan short penuh: mengeksekusi order entri short baru ditambah TP bertingkat dan SL opsional.

Contoh Objek SmartTrade

smart_trade_entity.json
200 OK
{
  "id": 12345678,
  "account": {
    "id": 32402783,
    "type": "binance_us",
    "name": "My Binance US",
    "market": "Binance US Spot",
    "link": "/accounts/32402783"
  },
  "pair": "USDT_DOGE",
  "instant": false,
  "status": {
    "type": "waiting_position",
    "basic_type": "waiting_position",
    "title": "Pending Position Opened"
  },
  "leverage": {
    "enabled": false
  },
  "position": {
    "type": "buy",
    "editable": false,
    "units": {
      "value": "15.0",
      "editable": false
    },
    "price": {
      "value": "0.10664",
      "value_without_commission": "0.10664",
      "editable": true
    },
    "total": {
      "value": "1.5996"
    },
    "order_type": "limit",
    "status": {
      "type": "order_placed",
      "basic_type": "order_placed",
      "title": "Placed"
    }
  },
  "take_profit": {
    "enabled": true,
    "price_type": "value",
    "steps": [
      {
        "id": 1006258048,
        "order_type": "limit",
        "editable": true,
        "units": {
          "value": null
        },
        "price": {
          "type": "last",
          "value": "0.11731",
          "percent": null
        },
        "volume": "100.0",
        "total": null,
        "trailing": {
          "enabled": false,
          "percent": null
        },
        "status": {
          "type": "idle",
          "basic_type": "idle",
          "title": "Pending"
        },
        "data": {
          "cancelable": true,
          "panic_sell_available": false
        },
        "position": 1
      }
    ]
  },
  "stop_loss": {
    "enabled": true,
    "price_type": "value",
    "breakeven": false,
    "order_type": "market",
    "editable": true,
    "price": {
      "value": null,
      "percent": null
    },
    "conditional": {
      "price": {
        "value": "0.1013",
        "type": "last",
        "percent": null
      },
      "trailing": {
        "enabled": false,
        "percent": null
      }
    },
    "timeout": {
      "enabled": false,
      "value": null
    },
    "status": {
      "type": "idle",
      "basic_type": "idle",
      "title": "Pending"
    }
  },
  "reduce_funds": {
    "steps": []
  },
  "market_close": {},
  "note": "Place for your note.",
  "note_raw": "Place for your note.",
  "skip_enter_step": false,
  "data": {
    "editable": true,
    "current_price": {
      "bid": "0.10713",
      "ask": "0.10726",
      "last": "0.10726",
      "quote_volume": "212795.59182",
      "day_change_percent": "1.861"
    },
    "target_price_type": "price",
    "orderbook_price_currency": "USDT",
    "base_order_finished": true,
    "missing_funds_to_close": "0.0",
    "liquidation_price": null,
    "average_enter_price": null,
    "average_close_price": null,
    "average_enter_price_without_commission": null,
    "average_close_price_without_commission": null,
    "panic_sell_available": false,
    "add_funds_available": true,
    "reduce_funds_available": false,
    "force_start_available": true,
    "force_process_available": true,
    "cancel_available": true,
    "finished": false,
    "base_position_step_finished": false,
    "entered_amount": "0.0",
    "entered_total": "0.0",
    "closed_amount": "0.0",
    "closed_total": "0.0",
    "commission": 0.001,
    "created_at": "2024-08-12T16:24:38.360Z",
    "updated_at": "2024-08-12T16:37:11.480Z",
    "type": "smart_trade"
  },
  "profit": {
    "volume": null,
    "usd": null,
    "percent": "0.0",
    "roe": null
  },
  "margin": {
    "amount": null,
    "total": null
  },
  "is_position_not_filled": true
}