> For the complete documentation index, see [llms.txt](https://algomaster.gitbook.io/tcore-api/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://algomaster.gitbook.io/tcore-api/c++-regular-dll/rtcquoteapi-functions.md).

# 行情 DLL functions

## **CreateRTCQuoteAPI**

创建RTCQuoteAPI

{% tabs %}
{% tab title="Request" %}

```csharp
RTCQuoteAPI *CreateRTCQuoteAPI()
```

{% endtab %}

{% tab title="Return" %}
返回一个RTCQuoteAPI 实例指标
{% endtab %}
{% endtabs %}

## **Release**

不再使用本介面对象时，调用该函数删除对象

```
void Release()
```

## **Join**

等待介面执行绪结束运行

{% tabs %}
{% tab title="Request" %}

```csharp
int Join()
```

{% endtab %}

{% tab title="Return" %}
成功为0，否则失败
{% endtab %}
{% endtabs %}

## **RegisterFront**

连接TCore

{% tabs %}
{% tab title="Request" %}

```csharp
LONG RegisterFront(char *strHostAddress, char *strSystemName, char *strServiceKey, int iConnectType)
```

| **Parameters** | 类型     | 说明         |
| -------------- | ------ | ---------- |
| strHostAddress | char\* | TCore位址    |
| strSystemName  | char\* | TCore系统名称  |
| strServiceKey  | char\* | 连线TCore ID |
| iConnectType   | int    | 固定带1       |
| {% endtab %}   |        |            |

{% tab title="Return" %}
成功为0，否则失败
{% endtab %}
{% endtabs %}

## **RegisterSpi**

继承自callback介面类的实例

{% tabs %}
{% tab title="Request" %}

```csharp
void RegisterSpi(RTCQuoteAPISpi *pSpi)
```

| **Parameters** |                                   |              |
| -------------- | --------------------------------- | ------------ |
| pSpi           | <p>RTCQuoteAPISpi <br>pointer</p> | 指向callback指标 |
| {% endtab %}   |                                   |              |
| {% endtabs %}  |                                   |              |

## **SubscribeMarketData**

订阅行情

{% tabs %}
{% tab title="Request" %}

```csharp
int SubscribeMarketData(char *ppInstrumentID[], int nCount)
```

| **Parameters** | 类型        | 说明                |
| -------------- | --------- | ----------------- |
| ppInstrumentID | char\*\[] | 要订阅的TCore symbol  |
| nCount         | int       | 订阅TCore symbol的数量 |
| {% endtab %}   |           |                   |

{% tab title="Return" %}
成功为0，否则失败
{% endtab %}
{% endtabs %}

## **UnSubscribeMarketData**

退订行情

{% tabs %}
{% tab title="Request" %}

```csharp
int UnSubscribeMarketData(char *ppInstrumentID[], int nCount)
```

| **Parameters**     | 类型        | 说明                |
| ------------------ | --------- | ----------------- |
| **ppInstrumentID** | char\*\[] | 要退订的TCore symbol  |
| **nCount**         | int       | 退订TCore symbol的数量 |
| {% endtab %}       |           |                   |

{% tab title="Untitled" %}
成功为0，否则失败
{% endtab %}
{% endtabs %}

## **SubscribeGreeksData**

订阅Greeks行情

{% tabs %}
{% tab title="Request" %}

```cpp
int SubscribeGreeksData(char *ppInstrumentID[], int nCount)
```

| **Parameters**     |           |                   |
| ------------------ | --------- | ----------------- |
| **ppInstrumentID** | char\*\[] | 要订阅的TCore symbol  |
| **nCount**         | int       | 订阅TCore symbol的数量 |
| {% endtab %}       |           |                   |

{% tab title="Return" %}
成功为0，否则失败
{% endtab %}
{% endtabs %}

## **UnSubscribeGreeksData**

退订Greeks行情

{% tabs %}
{% tab title="Request" %}

```cpp
int UnSubscribeGreekGreekcData(char *ppInstrumentID[], int nCount)
```

| **Parameters**     |           |                   |
| ------------------ | --------- | ----------------- |
| **ppInstrumentID** | char\*\[] | 要退订的TCore symbol  |
| **nCount**         | int       | 退订TCore symbol的数量 |
| {% endtab %}       |           |                   |

{% tab title="Return" %}
成功为0，否则失败
{% endtab %}
{% endtabs %}
