forked from lxjwolf/V3-Open-API-SDK
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
924de66
commit dc9522f
Showing
46 changed files
with
1,199 additions
and
793 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
okex-cs-sdk-api/OKExSDK/obj/Debug/netstandard2.0/OKExSDK.assets.cache
Binary file not shown.
Binary file modified
BIN
-76.4 KB
(0.54%)
okex-cs-sdk-api/OKExSDK/obj/Debug/netstandard2.0/OKExSDK.csprojAssemblyReference.cache
Binary file not shown.
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"version": 1, | ||
"dgSpecHash": "voLopVl+6TTdcHgI51+L2PxIzUzBXj38bnR197ljgNEqCMwVAG7J79bZKlDMk4DYmUN9xddGkMPcXUNgFSNDzg==", | ||
"dgSpecHash": "tLZHI1zJa7ZCnaTHa5eMst8AgdkU9B4Wsn7sBh5hEkfFZLXrJ1xNcmvXV0fUKA/GFXBXuetxoFzNCoSV2SmlrQ==", | ||
"success": true | ||
} |
10 changes: 5 additions & 5 deletions
10
okex-cs-sdk-api/OKExSDK/obj/OKExSDK.csproj.nuget.dgspec.json
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Net.Http; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace OKExSDK | ||
{ | ||
public class IndexApi:SdkApi | ||
{ | ||
private string INDEX_SEGMENT = "api/index/v3"; | ||
public IndexApi(string apiKey, string secret, string passPhrase) : base(apiKey, secret, passPhrase) { } | ||
/// <summary> | ||
/// | ||
/// </summary> | ||
/// <returns></returns> | ||
public async Task<string> constituents(string instrument_id) | ||
{ | ||
var url = $"{this.BASEURL}{this.INDEX_SEGMENT}/{instrument_id}/constituents"; | ||
using (var client = new HttpClient(new HttpInterceptor(this._apiKey, this._secret, this._passPhrase, null))) | ||
{ | ||
var res = await client.GetAsync(url); | ||
var contentStr = await res.Content.ReadAsStringAsync(); | ||
return contentStr; | ||
} | ||
} | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Net.Http; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace OKExSDK | ||
{ | ||
public class SystemApi:SdkApi | ||
{ | ||
private string SYSTEM_SEGMENT = "api/system/v3"; | ||
public SystemApi(string apiKey, string secret, string passPhrase) : base(apiKey, secret, passPhrase) { } | ||
/// <summary> | ||
/// | ||
/// </summary> | ||
/// <returns></returns> | ||
public async Task<string> status() | ||
{ | ||
var url = $"{this.BASEURL}{this.SYSTEM_SEGMENT}/status"; | ||
using (var client = new HttpClient(new HttpInterceptor(this._apiKey, this._secret, this._passPhrase, null))) | ||
{ | ||
var res = await client.GetAsync(url); | ||
var contentStr = await res.Content.ReadAsStringAsync(); | ||
return contentStr; | ||
} | ||
} | ||
} | ||
} |
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
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
+78 Bytes
(100%)
okex-cs-sdk-api/OKExSDKLibrary/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache
Binary file not shown.
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
Binary file modified
BIN
+222 Bytes
(110%)
okex-cs-sdk-api/OKExSDKLibrary/obj/Debug/OKExSDKLibrary.csprojAssemblyReference.cache
Binary file not shown.
Binary file not shown.
Binary file not shown.
Oops, something went wrong.