调用股票交易软件接口有什么步骤?
第一步要做的就是定位出现问题的股票交易软件接口,并确定问题的具体所在,这样才能对症下药。
第二步就是进行状态码的检测,股票交易软件接口会返回一些HTTP状态码,这些状态码代表着不同的含义。
144. |
// 登出交易账户 |
|
145. |
void Logoff(int ClientId) const { m_logoffFn(ClientId); } |
|
146. |
// 查询各类交易数据 |
|
147. |
void QueryData(int ClientId, int Category, char* Result, |
|
148. |
char* ErrorInfo) const { |
|
149. |
m_queryDataFn(ClientId, Category, Result, ErrorInfo); |
|
150. |
} |
|
151. |
// 单账户批量查询各类交易数据 |
|
152. |
void QueryDatas(int ClientId, int Category[], int Count, char* Result[], |
|
153. |
char* ErrorInfo[]) const { |
|
154. |
m_queryDatasFn(ClientId, Category, Count, Result, ErrorInfo); |
|
155. |
} |
|
156. |
// 多账户批量查询各类交易数据 |
|
157. |
void QueryMultiAccountsDatas(int ClientId[], int Category[], int Count, |
|
158. |
char* Result[], char* ErrorInfo[]) const { |
|
159. |
m_queryMultiAccountsDatasFn(ClientId, Category, Count, Result, ErrorInfo); |
|
160. |
} |
|
161. |
// 查询各类历史数据 |
|
162. |
void QueryHistoryData(int ClientId, int Category, const char* StartDate, |
|
163. |
const char* EndDate, char* Result, |
|
164. |
char* ErrorInfo) const { |
|
165. |
m_queryHistoryDataFn(ClientId, Category, StartDate, EndDate, Result, |
|
166. |
ErrorInfo); |
|
167. |
} |
以上就是在调用股票交易软件接口时的一些步骤。今天的分享就到这,如果还想了解更多关于股票交易接口这方面的信息,可以联系下方qq名片。