Skip to content

Commit fce21b2

Browse files
committed
添加金仕达黄金现货项目
1 parent 6aff234 commit fce21b2

44 files changed

Lines changed: 8181 additions & 5 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

QuantBox.XAPI/Callback/TraderApi.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
namespace QuantBox.XAPI.Callback
99
{
10-
public class TraderApi : BaseApi
10+
public class TraderApi : MarketDataApi
1111
{
1212
public DelegateOnRspQryInstrument OnRspQryInstrument;
1313
public DelegateOnRspQryTradingAccount OnRspQryTradingAccount;

QuantBox_CTP_Quote/MdUserApi.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ void CMdUserApi::OnRtnDepthMarketData(CThostFtdcDepthMarketDataField *pDepthMark
419419

420420
marketData.BidPrice4 = pDepthMarketData->BidPrice4;
421421
marketData.BidVolume4 = pDepthMarketData->BidVolume4;
422-
marketData.AskPrice4 = pDepthMarketData->AskPrice2;
422+
marketData.AskPrice4 = pDepthMarketData->AskPrice4;
423423
marketData.AskVolume4 = pDepthMarketData->AskVolume4;
424424

425425
marketData.BidPrice5 = pDepthMarketData->BidPrice5;

QuantBox_CTP_Trade/TraderApi.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -533,6 +533,7 @@ char* CTraderApi::ReqOrderInsert(
533533
case TrailingStop:
534534
body.OrderPriceType = THOST_FTDC_OPT_AnyPrice;
535535
body.TimeCondition = THOST_FTDC_TC_IOC;
536+
body.LimitPrice = 0;
536537
break;
537538
case Limit:
538539
case StopLimit:

QuantBox_Femas_Quote/MdUserApi.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ void CMdUserApi::OnRtnDepthMarketData(CUstpFtdcDepthMarketDataField *pDepthMarke
342342

343343
marketData.BidPrice4 = pDepthMarketData->BidPrice4;
344344
marketData.BidVolume4 = pDepthMarketData->BidVolume4;
345-
marketData.AskPrice4 = pDepthMarketData->AskPrice2;
345+
marketData.AskPrice4 = pDepthMarketData->AskPrice4;
346346
marketData.AskVolume4 = pDepthMarketData->AskVolume4;
347347

348348
marketData.BidPrice5 = pDepthMarketData->BidPrice5;
Lines changed: 113 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,113 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project DefaultTargets="Build" ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<ItemGroup Label="ProjectConfigurations">
4+
<ProjectConfiguration Include="Debug|Win32">
5+
<Configuration>Debug</Configuration>
6+
<Platform>Win32</Platform>
7+
</ProjectConfiguration>
8+
<ProjectConfiguration Include="Release|Win32">
9+
<Configuration>Release</Configuration>
10+
<Platform>Win32</Platform>
11+
</ProjectConfiguration>
12+
</ItemGroup>
13+
<PropertyGroup Label="Globals">
14+
<ProjectGuid>{C8F7594A-F33D-445C-8ADB-5D4BAB5BD95B}</ProjectGuid>
15+
<Keyword>Win32Proj</Keyword>
16+
<RootNamespace>QuantBox_KingstarGold</RootNamespace>
17+
</PropertyGroup>
18+
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
19+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
20+
<ConfigurationType>DynamicLibrary</ConfigurationType>
21+
<UseDebugLibraries>true</UseDebugLibraries>
22+
<PlatformToolset>v120</PlatformToolset>
23+
<CharacterSet>Unicode</CharacterSet>
24+
</PropertyGroup>
25+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
26+
<ConfigurationType>DynamicLibrary</ConfigurationType>
27+
<UseDebugLibraries>false</UseDebugLibraries>
28+
<PlatformToolset>v120</PlatformToolset>
29+
<WholeProgramOptimization>true</WholeProgramOptimization>
30+
<CharacterSet>Unicode</CharacterSet>
31+
</PropertyGroup>
32+
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
33+
<ImportGroup Label="ExtensionSettings">
34+
</ImportGroup>
35+
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
36+
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
37+
</ImportGroup>
38+
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
39+
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
40+
</ImportGroup>
41+
<PropertyGroup Label="UserMacros" />
42+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
43+
<LinkIncremental>true</LinkIncremental>
44+
</PropertyGroup>
45+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
46+
<LinkIncremental>false</LinkIncremental>
47+
</PropertyGroup>
48+
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
49+
<ClCompile>
50+
<PrecompiledHeader>Use</PrecompiledHeader>
51+
<WarningLevel>Level3</WarningLevel>
52+
<Optimization>Disabled</Optimization>
53+
<PreprocessorDefinitions>WIN32;_DEBUG;_WINDOWS;_USRDLL;QUANTBOX_KINGSTARGOLD_EXPORTS;BUILDING_DLL;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
54+
<SDLCheck>true</SDLCheck>
55+
</ClCompile>
56+
<Link>
57+
<SubSystem>Windows</SubSystem>
58+
<GenerateDebugInformation>true</GenerateDebugInformation>
59+
</Link>
60+
</ItemDefinitionGroup>
61+
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
62+
<ClCompile>
63+
<WarningLevel>Level3</WarningLevel>
64+
<PrecompiledHeader>Use</PrecompiledHeader>
65+
<Optimization>MaxSpeed</Optimization>
66+
<FunctionLevelLinking>true</FunctionLevelLinking>
67+
<IntrinsicFunctions>true</IntrinsicFunctions>
68+
<PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;_USRDLL;QUANTBOX_KINGSTARGOLD_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
69+
<SDLCheck>true</SDLCheck>
70+
</ClCompile>
71+
<Link>
72+
<SubSystem>Windows</SubSystem>
73+
<GenerateDebugInformation>true</GenerateDebugInformation>
74+
<EnableCOMDATFolding>true</EnableCOMDATFolding>
75+
<OptimizeReferences>true</OptimizeReferences>
76+
</Link>
77+
</ItemDefinitionGroup>
78+
<ItemGroup>
79+
<Text Include="ReadMe.txt" />
80+
</ItemGroup>
81+
<ItemGroup>
82+
<ClInclude Include="..\include\toolkit.h" />
83+
<ClInclude Include="stdafx.h" />
84+
<ClInclude Include="targetver.h" />
85+
<ClInclude Include="TraderApi.h" />
86+
<ClInclude Include="TypeConvert.h" />
87+
</ItemGroup>
88+
<ItemGroup>
89+
<ClCompile Include="..\include\toolkit.cpp" />
90+
<ClCompile Include="dllmain.cpp">
91+
<CompileAsManaged Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">false</CompileAsManaged>
92+
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
93+
</PrecompiledHeader>
94+
<CompileAsManaged Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">false</CompileAsManaged>
95+
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
96+
</PrecompiledHeader>
97+
</ClCompile>
98+
<ClCompile Include="main.cpp" />
99+
<ClCompile Include="stdafx.cpp">
100+
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Create</PrecompiledHeader>
101+
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">Create</PrecompiledHeader>
102+
</ClCompile>
103+
<ClCompile Include="TraderApi.cpp" />
104+
<ClCompile Include="TypeConvert.cpp" />
105+
</ItemGroup>
106+
<ItemGroup>
107+
<Library Include="..\include\Kingstar_Gold\win32\goldtradeapi.lib" />
108+
<Library Include="..\lib\QuantBox_Queue.lib" />
109+
</ItemGroup>
110+
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
111+
<ImportGroup Label="ExtensionTargets">
112+
</ImportGroup>
113+
</Project>
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<ItemGroup>
4+
<Filter Include="Source Files">
5+
<UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
6+
<Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
7+
</Filter>
8+
<Filter Include="Header Files">
9+
<UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
10+
<Extensions>h;hh;hpp;hxx;hm;inl;inc;xsd</Extensions>
11+
</Filter>
12+
<Filter Include="Resource Files">
13+
<UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier>
14+
<Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms</Extensions>
15+
</Filter>
16+
<Filter Include="lib">
17+
<UniqueIdentifier>{f9c4474a-8dc4-4fe6-b6f1-772929461c07}</UniqueIdentifier>
18+
</Filter>
19+
</ItemGroup>
20+
<ItemGroup>
21+
<Text Include="ReadMe.txt" />
22+
</ItemGroup>
23+
<ItemGroup>
24+
<ClInclude Include="stdafx.h">
25+
<Filter>Header Files</Filter>
26+
</ClInclude>
27+
<ClInclude Include="targetver.h">
28+
<Filter>Header Files</Filter>
29+
</ClInclude>
30+
<ClInclude Include="TraderApi.h">
31+
<Filter>Header Files</Filter>
32+
</ClInclude>
33+
<ClInclude Include="TypeConvert.h">
34+
<Filter>Header Files</Filter>
35+
</ClInclude>
36+
<ClInclude Include="..\include\toolkit.h">
37+
<Filter>Header Files</Filter>
38+
</ClInclude>
39+
</ItemGroup>
40+
<ItemGroup>
41+
<ClCompile Include="stdafx.cpp">
42+
<Filter>Source Files</Filter>
43+
</ClCompile>
44+
<ClCompile Include="dllmain.cpp">
45+
<Filter>Source Files</Filter>
46+
</ClCompile>
47+
<ClCompile Include="main.cpp">
48+
<Filter>Source Files</Filter>
49+
</ClCompile>
50+
<ClCompile Include="TraderApi.cpp">
51+
<Filter>Source Files</Filter>
52+
</ClCompile>
53+
<ClCompile Include="TypeConvert.cpp">
54+
<Filter>Source Files</Filter>
55+
</ClCompile>
56+
<ClCompile Include="..\include\toolkit.cpp">
57+
<Filter>Source Files</Filter>
58+
</ClCompile>
59+
</ItemGroup>
60+
<ItemGroup>
61+
<Library Include="..\include\Kingstar_Gold\win32\goldtradeapi.lib">
62+
<Filter>lib</Filter>
63+
</Library>
64+
<Library Include="..\lib\QuantBox_Queue.lib">
65+
<Filter>lib</Filter>
66+
</Library>
67+
</ItemGroup>
68+
</Project>

QuantBox_KingstarGold/ReadMe.txt

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
========================================================================
2+
DYNAMIC LINK LIBRARY : QuantBox_KingstarGold Project Overview
3+
========================================================================
4+
5+
AppWizard has created this QuantBox_KingstarGold DLL for you.
6+
7+
This file contains a summary of what you will find in each of the files that
8+
make up your QuantBox_KingstarGold application.
9+
10+
11+
QuantBox_KingstarGold.vcxproj
12+
This is the main project file for VC++ projects generated using an Application Wizard.
13+
It contains information about the version of Visual C++ that generated the file, and
14+
information about the platforms, configurations, and project features selected with the
15+
Application Wizard.
16+
17+
QuantBox_KingstarGold.vcxproj.filters
18+
This is the filters file for VC++ projects generated using an Application Wizard.
19+
It contains information about the association between the files in your project
20+
and the filters. This association is used in the IDE to show grouping of files with
21+
similar extensions under a specific node (for e.g. ".cpp" files are associated with the
22+
"Source Files" filter).
23+
24+
QuantBox_KingstarGold.cpp
25+
This is the main DLL source file.
26+
27+
When created, this DLL does not export any symbols. As a result, it
28+
will not produce a .lib file when it is built. If you wish this project
29+
to be a project dependency of some other project, you will either need to
30+
add code to export some symbols from the DLL so that an export library
31+
will be produced, or you can set the Ignore Input Library property to Yes
32+
on the General propert page of the Linker folder in the project's Property
33+
Pages dialog box.
34+
35+
/////////////////////////////////////////////////////////////////////////////
36+
Other standard files:
37+
38+
StdAfx.h, StdAfx.cpp
39+
These files are used to build a precompiled header (PCH) file
40+
named QuantBox_KingstarGold.pch and a precompiled types file named StdAfx.obj.
41+
42+
/////////////////////////////////////////////////////////////////////////////
43+
Other notes:
44+
45+
AppWizard uses "TODO:" comments to indicate parts of the source code you
46+
should add to or customize.
47+
48+
/////////////////////////////////////////////////////////////////////////////

0 commit comments

Comments
 (0)