مشاهده اطلاعات موقعیت مارجین قبل از ایجاد

این API به شما امکان می‌دهد اطلاعات و جزئیات یک موقعیت تعهدی را قبل از ایجاد آن مشاهده کنید.

curl -i -X POST \
  https://api.wallex.ir/margin-trade/v1/public/dry-run \
  -H 'Content-Type: application/json' \
  -H 'x-api-key: YOUR_API_KEY_HERE' \
  -d '{
    "collateral": "string",
    "market": "string",
    "open_price": "string",
    "risk_coef": "string",
    "side": "string",
    "stop_loss": "string",
    "take_profit": "string"
  }'
Response
application/json
{ "call_price": "string", "collateral": { "currency": "string", "value": "string" }, "extend_fee": { "currency": "string", "value": "string" }, "extend_time": 0, "liquidity_price": "string", "loan": { "currency": "string", "value": "string" }, "market": "string", "max_age": 0, "open_fee": { "currency": "string", "value": "string" }, "open_price": "string", "risk_coef": "string", "side": "string", "stop_loss": "string", "take_profit": "string", "trade_fee": { "currency": "string", "value": "string" } }

توضیحات Request-Body

برای فراخوانی این API باید اطلاعات زیر را به‌صورت JSON در Request-Body ارسال کنید:

Example

"300000"

Data Type

String

Required or Optional

Required

Definition

میزان وثیقه درخواستی برای ایجاد موقعیت تعهدی

توضیحات Response-Body


{
  "call_price": "قیمت حد هشدار",
  "collateral": {
    "currency": "ارز",
    "value": " ارزش وثیقه"
  },
  "extend_fee": {
    "currency": "ارز ",
    "value": "ارزش کارمزد تمدید"
  },
  "extend_time": "مدت زمان تمدید",
  "liquidity_price": "قیمت لیکوییدیتی",
  "loan": { 
    "currency": "ارز",
    "value": " ارزش وام"
  },
  "market": "بازار",
  "max_age": "ماکزیمم عمر موقعیت",
  "open_fee": {
    "currency": "ارز",
    "value": "ارزش کارمزد بازکردن"
  },
   "open_price" : "قیمت باز کردن",
   "risk_coef" : "نسبت اعتبار",
   "side": "لانگ/ شورت",
   "stop_loss": "حد ضرر",
   "take_profit":  "حد سود" , 
  "trade_fee": {
    "currency": "ارز",
    "value": "ارزش کارمزد معامله"
  },
  "success": "موفقیت آمیز بودن درخواست"
}