GetRealTimeGreeks

獲取指定選擇權的 Delta、Gamma、Theta、Vega、IV、OI 資訊

語法

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

參數

僅限即時報價獲取,無歷史資料。

Last updated