long, Optional timestamp if null will return last 30 days
endDate
integer
long, Optional timestamp if null will return last 30 days
Headers
Name
Type
Description
X-PCK*
string
API public key. You can create the API key from the Account > API Access page in your exchange account.
X-Stamp*
integer
Nonce must be current timestamp in miliseconds. It is a must to sync your current time with API server time which is in miliseconds format. Our servers are using UTC timezone.
X-Signature*
string
Signature is a HMAC-SHA256 encoded message. The HMAC-SHA256 code must be generated using a private key that contains a timestamp as nonce and your API key.
// You can download ApiClient .net core complete library from github https://github.com/BTCTrader/broker-api-csharp-v2
var configuration = new ConfigurationBuilder().AddJsonFile("appsettings.json").Build();
var publicKey = configuration["publicKey"];
var privateKey = configuration["privateKey"];
var resourceUrl = configuration["resourceUrl"];
var apiClientV1 = new ApiClientV1(publicKey, privateKey, resourceUrl);
var userCryptoTransactions = apiClientV1.GetUserCryptoTransactions(new[] { "deposit", "withdrawal" }, new[] { "btc", "eth", "xrp" }, DateTime.UtcNow.AddDays(-30).ToUnixTime(), DateTime.UtcNow.ToUnixTime());
if (userCryptoTransactions.Result.Success)
{
foreach (var userCryptoTransaction in userCryptoTransactions.Result.Data)
{
Console.WriteLine(userCryptoTransaction);
}
}