-
Notifications
You must be signed in to change notification settings - Fork 203
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #413 from crypto-chassis/develop
Release
- Loading branch information
Showing
47 changed files
with
904 additions
and
99 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 0 additions & 3 deletions
3
binding/csharp/example/enable_library_logging/user_specified_cmake_include.cmake
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 3 additions & 1 deletion
4
binding/csharp/example/market_data_simple_subscription/MainProgram.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
class MainProgram { | ||
class MyEventHandler : ccapi.EventHandler { | ||
public override bool ProcessEvent(ccapi.Event event_, ccapi.Session session) { | ||
return true; | ||
} | ||
} | ||
static void Main(string[] args) { | ||
var eventHandler = new MyEventHandler(); | ||
var option = new ccapi.SessionOptions(); | ||
var config = new ccapi.SessionConfigs(); | ||
var session = new ccapi.Session(option, config, eventHandler); | ||
var subscriptionList = new ccapi.SubscriptionList(); | ||
subscriptionList.Add(new ccapi.Subscription("okx", "BTC-USDT", "MARKET_DEPTH")); | ||
session.Subscribe(subscriptionList); | ||
var request = new ccapi.Request(ccapi.Request.Operation.GET_RECENT_TRADES, "okx", "BTC-USDT"); | ||
var param = new ccapi.MapStringString(); | ||
param.Add("LIMIT", "1"); | ||
request.AppendParam(param); | ||
session.SendRequest(request); | ||
session.Stop(); | ||
System.Console.WriteLine("Bye"); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
<PropertyGroup> | ||
<OutputType>Exe</OutputType> | ||
<TargetFramework>net6.0</TargetFramework> | ||
<Nullable>enable</Nullable> | ||
<Configuration>Release</Configuration> | ||
<CcapiLibraryPath>to be provided in command line</CcapiLibraryPath> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<Reference Include="ccapi"> | ||
<HintPath>$(CcapiLibraryPath)</HintPath> | ||
</Reference> | ||
</ItemGroup> | ||
</Project> |
Oops, something went wrong.