IEX.API.V2.Signer 1.0.6

Sign request for IEX API V2
Only available to Grow and Scale users

Install-Package IEX.API.V2.Signer -Version 1.0.6
dotnet add package IEX.API.V2.Signer --version 1.0.6
<PackageReference Include="IEX.API.V2.Signer" Version="1.0.6" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add IEX.API.V2.Signer --version 1.0.6
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

IEX.API.V2.Signer

Sign request for IEX API V2
Only available to Grow and Scale users

Usage

string host = "sandbox.iexapis.com"; //Sandbox host
//string host = "cloud.iexapis.com" //Production host
string pk = "PublishToken";
string sk = "SecretToken";

IEXSigner.Signer signer = new IEXSigner.Signer(host, sk);

/*
 * If run separately
IEXSigner.Signer signer = new IEXSigner.Signer();
signer.SetHost(host);
signer.SetSecretToken(sk);
*/

string method = "GET";
string url = "/account/metadata"; // "/" is required at the beginning
string queryString = "namea=1&nameb=2";
string payload = "{\"test\":123,\"obj\":456}";

//For GET requests
(string iexdate, string authorization_header) headers = signer.Sign(pk, method, url, queryString);

//For POST requests
(string iexdate, string authorization_header) headers = signer.Sign(pk, method, url, queryString, payload);

Set request header Read More

To IEX Benjamin and Ryan

Thank you so much for helping me understand the requirement.

IEX.API.V2.Signer

Sign request for IEX API V2
Only available to Grow and Scale users

Usage

string host = "sandbox.iexapis.com"; //Sandbox host
//string host = "cloud.iexapis.com" //Production host
string pk = "PublishToken";
string sk = "SecretToken";

IEXSigner.Signer signer = new IEXSigner.Signer(host, sk);

/*
 * If run separately
IEXSigner.Signer signer = new IEXSigner.Signer();
signer.SetHost(host);
signer.SetSecretToken(sk);
*/

string method = "GET";
string url = "/account/metadata"; // "/" is required at the beginning
string queryString = "namea=1&nameb=2";
string payload = "{\"test\":123,\"obj\":456}";

//For GET requests
(string iexdate, string authorization_header) headers = signer.Sign(pk, method, url, queryString);

//For POST requests
(string iexdate, string authorization_header) headers = signer.Sign(pk, method, url, queryString, payload);

Set request header Read More

To IEX Benjamin and Ryan

Thank you so much for helping me understand the requirement.

Release Notes

Update namespace void confusion

  • .NETStandard 2.0

    • No dependencies.

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
1.0.6 120 3/31/2019
1.0.4 92 3/30/2019
1.0.0 93 3/27/2019