.Net client SDK to work with Apex Clearing API.
The resources/functionalities supported are listed on the following table:
Resources | Endpoints | Support |
---|---|---|
Authorization | Generate JWS | ✔️ |
Request JWT | ✔️ | |
Verify Token | ✔️ | |
Logout / Invalidate Token | ✔️ | |
Events | ❌ | |
Accounts | ❌ | |
Cash | ❌ | |
Portfolios | ❌ | |
Trading | ❌ | |
Orders | Initiate an Order | ✔️ |
Retrieve Status | ✔️ | |
Retrieve A List of Error Codes | ✔️ | |
Retrieve A List of Active Symbols v1 | ✔️ | |
Retrieve A List of Active Symbols v2 | ✔️ | |
Get Order Details | ✔️ | |
Cancel an Order | ✔️ | |
Transfers | ❌ | |
Lending | ❌ | |
Crypto | ❌ |
Using the following client credentials json file sample provided by Apex CLearing
{
"username": "apex_api",
"entity": "correspondent.apx1",
"sharedSecret": "<secret key>"
}
var clientCredentials = ClientCredentials.BuildFromCredentialsFile("sample_credentials.json");
var client = new ApexAPIClient(clientCredentials);
var status = await _client.Orders.GetStatusAsync();
More examples can be found by consulting the integration tests at https://github.com/motoqueiro/ApexClearingSDK/blob/main/ApexClearing.SDK.IntegrationTests/ApexClearingClientIntegrationTests.cs