# GetRealTimeGreeks

## 語法

```
GetRealTimeGreeks(Symbol_Name, Quote_Field);
```

## 範例

列印商品 TXO.2011.C13300.TWF 的 Delta、Gamma、Theta、Vega、IV、OI 資訊

```
once begin
cleardebug;

// Delta
value1 = GetRealTimeGreeks("TXO.2011.C13300.TWF",1); 
 
//Gamma 
value2 = GetRealTimeGreeks("TXO.2011.C13300.TWF",2);

//Theta
value3 = GetRealTimeGreeks("TXO.2011.C13300.TWF",3);

//Vega
value4 = GetRealTimeGreeks("TXO.2011.C13300.TWF",4); 

//IV
value5 = GetRealTimeGreeks("TXO.2011.C13300.TWF",5); 

//OI
value6 = GetRealTimeGreeks("TXO.2011.C13300.TWF",6); 

print(D," ",t,",  Delta=",value1:4:4,",  Gamma=",value2:4:4,",  Theta=",value3:4:4,",  Vega=",value4:4:4,",  IV=",value5,"  OI=",value6,NewLine);
 
end;

```

輸出參考

```
1201113.00 1301.00,  Delta=0.4598,  Gamma=0.0016,  Theta=-16.5023,  Vega=5.6645,  IV=  16.98  OI=11911.00
```

## **參數**

| 名稱           | 類型  | 說明                             |
| ------------ | --- | ------------------------------ |
| Symbol\_Name | 字串型 | 選擇權合約代號，如”TXO.2011.C13000.TWF” |
| Quote\_Field | 數值型 | 請參考【**欄位代碼表**】                 |

| 代碼 | 說明                           |
| -- | ---------------------------- |
| 1  | Delta ( 衡量貨價格的變動風險 )         |
| 2  | Gamma ( 衡量Delta的變動風險 )       |
| 3  | Theta ( 經過一天選擇權價格會減少多少點 )    |
| 4  | Vega ( IV 變動 1% 時，選擇權的價格變化 ) |
| 5  | IV ( 隱含波動率 )                 |
| 6  | OI ( 未平倉量 ) \*交易時段結束後才有資料    |

{% hint style="warning" %}
僅限即時報價獲取，無歷史資料。
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://touchance-1.gitbook.io/touchance/multicharts/jia-zhi-han-shu/mcextendquote/getrealtimegreeks.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
