| .dll | .h | api | spi | |
| 交易 | thosttraderapi.dll | ThostFtdcTraderApi.h | CThostFtdcTraderApi | CThostFtdcTraderSpi | 
| 行情 | Thostmduserapi.dll | ThostFtdcMdApi.h | CThostFtdcMdApi | CThostFtdcMdSpi | 
ReqQrySettlementInfoConfirm
查询结算信息确认。
OnRspQrySettlementInfoConfirm
查询结算确认响应。由交易托管系统主动通知客户端,该方法会被调用。
/////////////////////////////////////////////////////////////////////
ReqSettlementInfoConfirm
投资者结算结果确认。
OnRspSettlementInfoConfirm 
投资者结算结果确认应答。当客户端发出投资者结算结果确认指令后,交易
托管系统返回响应时,该方法会被调用。
/////////////////////////////////////////////////////////////////////
ReqQrySettlementInfo
请求查询投资者结算结果。
OnRspQrySettlementInfo
请求查询投资者结算结果响应。当客户端发出请求查询投资者结算结果指令
后,交易托管系统返回响应时,该方法会被调用。
1.查询上个交易日的结算单是否确认过
2.确认上个交易日的结算单
3.查询任何交易日的结算单
int main(){
 //int a = 2;
 //cout << "a的地址=" << &a << endl;
 //cout << "a的值为=" << a << endl;
 int* a = new int(2);
 cout << "a的地址=" << &a << endl;
 cout << "a的值为=" << a << endl;
 cout << "a指向的对象的地址=" << a << endl;
 cout << "a指向的对象的值为=" << *a << endl;
 system("pause");
}
#include <iostream>
using std::cout;
using std::endl;
void swap1(int a,int b){
 cout << "--------------" << endl;
 cout << "a的地址=" << &a << endl;
 cout << "a的值为=" << a << endl;
 cout << "b的地址=" << &b << endl;
 cout << "b的值为=" << b << endl;
 int temp = a;
 a = b;
 b = temp;
cout << "--------------" << endl;
 cout << "a的地址=" << &a << endl;
 cout << "a的值为=" << a << endl;
 cout << "b的地址=" << &b << endl;
 cout << "b的值为=" << b << endl;
}
void swap2(int* a,int* b){
 cout << "--------------" << endl;
 cout << "a的地址=" << &a << endl;
 cout << "a的值为=" << a << endl;
 cout << "b的地址=" << &b << endl;
 cout << "b的值为=" << b << endl;
 int temp = *a;
 *a = *b;
 *b = temp;
cout << "--------------" << endl;
 cout << "a的地址=" << &a << endl;
 cout << "a的值为=" << a << endl;
 cout << "b的地址=" << &b << endl;
 cout << "b的值为=" << b << endl;
}
void swap3(int& a,int& b){
 cout << "--------------" << endl;
 cout << "a的地址=" << &a << endl;
 cout << "a的值为=" << a << endl;
 cout << "b的地址=" << &b << endl;
 cout << "b的值为=" << b << endl;
 int temp = a;
 a = b;
 b = temp;
cout << "--------------" << endl;
 cout << "a的地址=" << &a << endl;
 cout << "a的值为=" << a << endl;
 cout << "b的地址=" << &b << endl;
 cout << "b的值为=" << b << endl;
}
int main(){
 int a = 2;
 int b = 3;
 cout << "a的地址=" << &a << endl;
 cout << "a的值为=" << a << endl;
 cout << "b的地址=" << &b << endl;
 cout << "b的值为=" << b << endl;
 //swap1(a,b);
 //swap2(&a,&b);
 swap3(a,b);
cout << "--------------" << endl;
 cout << "a的地址=" << &a << endl;
 cout << "a的值为=" << a << endl;
 cout << "b的地址=" << &b << endl;
 cout << "b的值为=" << b << endl;
 system("pause");
}
#include <string>
#include <vector>
#include <iostream>
using namespace std;
class Point{
public:
 Point(int a){
  cout << "Point " << a << " is constructing" << endl;
 }
 ~Point(){
  cout << "Point is destructing" << endl;
 }
};
int main(){
 Point;
Point(1);
{Point b(2);}
Point* c = new Point(3);
delete c;
c = nullptr;
 system("pause");
 return 0;
}
#include <iostream>
#include <string>
using namespace std;
class Point
{
public:
 Point();
 ~Point();
private:
};
Point::Point()
{
 cout << "Point is constructing" << endl;
}
Point::~Point()
{
 cout << "Point is destructing" << endl;
}
int main(){
 //{Point p[2];}
Point* p = new Point[2];
delete [] p;
p = nullptr;
 system("pause");
 return 0;
}
仓位,杠杆,风险
80%,5倍,1%
按交易标的分:价格投机,价差套利
按是否顺势分:趋势投机,逆势投机,趋势套利,逆势套利
按持仓周期分:高频,短线,中线,长线