> For the complete documentation index, see [llms.txt](https://touchance-1.gitbook.io/touchance/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://touchance-1.gitbook.io/touchance/multicharts/jia-zhi-han-shu/mcextendquote/gethotspread.md).

# GetHotSpread

## 語法

```
GetHotSpread(Symbol_Name,Field_Date);
```

## 範例

查詢 CME.GC 這個商品的熱門月價差值，存入變數並列印結果。

```
value1=GetHotSpread("CME.GC HOT",D);
print(D,"	spread=",value1);
```

輸出結果

```
1200114.00	   spread=6.20
1200115.00	   spread=6.20
1200116.00	   spread=6.50
1200117.00	   spread=6.10
```

## **參數**

| **名稱**       | **類型** | **說明**               |
| ------------ | ------ | -------------------- |
| Symbol\_NAME | 字串型    | 商品合約代號，如”CME.GC HOT” |
| Field\_Date  | 數值型    | 查詢日期，如 1200114。      |
