> 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/getrealtimestring.md).

# GetRealTimeString

## 語法

```
GetRealTimeString(Symbol_Name,Quote_Field);
```

## 範例

列印商品 CME.GC HOT 的報價資訊：

```
once begin
cleardebug;
print("Exchange=:",GetRealTimeString( "CME.GC HOT", 2));
print("SymbolCode=:",GetRealTimeString( "CME.GC HOT", 10));
end;	
```

輸出參考

```
Exchange=:CME
SymbolCode=:GC.202004
```

## **參數**

| **名稱**       | **類型** | **說明**                               |
| ------------ | ------ | ------------------------------------ |
| Symbol\_NAME | 字串型    | 獲取報價的合約代號，如”CME.GC HOT”              |
| Quote\_Field | 數值型    | <p>獲取報價的欄位內容</p><p>2：交易所，10：商品代碼</p> |
