Get Fiat Transactions

Retrieve all fiat transactions.

For all transactions related to the private endpoint, you must authorize before sending your request.

For more information you can check our Authentication V1 article.

  • 4 parameters can be used to access user fiat transactions.

  • You can access user fiat transactions with type, symbol, startDate, and endDate parameters.

The startDate and endDate parameters must be used with Unix timestamps in milliseconds.

Fiat

GET https://api.btcturk.com/api/v1/users/transactions/fiat

Query Parameters

Headers

{
    "data": [
        {
            "balanceType": "withdrawal",
            "currencySymbol": "TRY",
            "address": null,
            "tag": null,
            "txHash": null,
            "confirmationCount": null,
            "isConfirmed": false,
            "id": 48705286,
            "timestamp": 1648301802887,
            "amount": "-1500",
            "fee": "0",
            "tax": "0"
        }
}

Fiat Transaction Code Example

// 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 userFiatTransactions = apiClientV1.GetUserFiatTransactions(new[] { "deposit", "withdrawal" }, new[] { "try" }, DateTime.UtcNow.AddDays(-30).ToUnixTime(), DateTime.UtcNow.ToUnixTime());
c#
if (userFiatTransactions.Result.Success)
{
    foreach (var userFiatTransaction in userFiatTransactions.Result.Data)
    {
        Console.WriteLine(userFiatTransaction);
    }
}

Last updated