# 说明

### 一、API介绍

此API支持下单，接收成交消息，行情订阅等接口。 支持形式：

* 通过apikey的形式进行调用此时需要使用特定的header参数，详情参阅：[签名规则](https://docs.multimarkets.org/client-api/open-api/sign)与[请求响应](https://docs.multimarkets.org/client-api/open-api/request)这两份文档，《请求响应》这份文档中请求头信息参数项非必填的需要参考各个接口中的header描述,如果接口的header中有对token参数的要求则去除掉忽略它。
* Open API接口与Client开放的接口一致，区别在于请求的加密鉴权方式不同，Open API需要申请apikey、secretKey进行签名访问，可以参考详细的接口清单 [Client API](https://multimarkets-c-api.apidocumentation.com/reference)

下面将要介绍如何获取apikey

### 二、申请Apikey流程说明

#### 方式一：

> 登录交易客户端，在我的页面中找到《API管理》，然后在API管理页面中创建ApiKey、SecretKey，其中SecretKey只有在创建后展示一次（出于安全考虑，系统不会存储），故需要妥善保管

#### 方式二：

> 通过调用Client API接口进行申请，步骤如下：

**1、登录**

调用接口：[登录](https://docs.multimarkets.org/client-api/login) 从结果中取出token备用

**2、申请Apikey**

调用接口：[申请API](https://docs.multimarkets.org/client-api/customer/api-management/apply-api) 从结果中取出apiKey与privateKey并保存记录好，这将是后续调用其它接口中所使用必要参数，申请一次就可以了，不需要每次都申请apikey。

**3、邦定您的外网IP地址**

调用接口：[分配权限](https://docs.multimarkets.org/client-api/customer/api-management/set-permissions) 需要邦定IP才可以是长期有效的，否则默认只有90天有效期。


---

# 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://docs-cn.multimarkets.org/client-api/open-api/shuo-ming.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.
