Grumson.Utilities.Taapi
1.0.0
See the version list below for details.
dotnet add package Grumson.Utilities.Taapi --version 1.0.0
NuGet\Install-Package Grumson.Utilities.Taapi -Version 1.0.0
<PackageReference Include="Grumson.Utilities.Taapi" Version="1.0.0" />
paket add Grumson.Utilities.Taapi --version 1.0.0
#r "nuget: Grumson.Utilities.Taapi, 1.0.0"
// Install Grumson.Utilities.Taapi as a Cake Addin #addin nuget:?package=Grumson.Utilities.Taapi&version=1.0.0 // Install Grumson.Utilities.Taapi as a Cake Tool #tool nuget:?package=Grumson.Utilities.Taapi&version=1.0.0
TaapiLibrary
The TaapiLibrary
is a library that provides a client for interacting with the TAAPI API. It allows users to retrieve indicator values and perform bulk indicator requests.
TaapiClient
The TaapiClient
class is the main class in the TaapiLibrary
that provides methods for interacting with the TAAPI API.
Constructors
TaapiClient(int retryAfterSeconds = 60)
- Initializes a new instance of the
TaapiClient
class. - Parameters:
retryAfterSeconds
(optional): The number of seconds to wait before retrying a request if the rate limit is exceeded. The default value is 60 seconds.
Public Methods
Task<TaapiIndicatorValuesResponse> GetIndicatorAsync(string apiKey, string symbol, TaapiExchange exchange, TaapiCandlesInterval candlesInterval, TaapiIndicatorPropertiesRequest directParametersRequest)
- Retrieves indicator values for a specific symbol and exchange.
- Parameters:
apiKey
: The API key for accessing the TAAPI API.symbol
: The symbol for which to retrieve indicator values.exchange
: The exchange on which the symbol is traded.candlesInterval
: The interval of the candles for the indicator calculation.directParametersRequest
: The request object containing the indicator properties.
- Returns:
- A
Task
that represents the asynchronous operation. The task result contains the indicator values as aTaapiIndicatorValuesResponse
object.
- A
Task<List<TaapiBulkResponse>> PostBulkIndicatorsAsync(TaapiBulkRequest requests)
- Performs bulk indicator requests.
- Parameters:
requests
: The bulk request object containing multiple indicator requests.
- Returns:
- A
Task
that represents the asynchronous operation. The task result contains a list ofTaapiBulkResponse
objects, each representing the response for an individual indicator request.
- A
Exceptions
The TaapiClient
class may throw the following exceptions:
ArgumentException
: Thrown when the symbol, API key, or indicator request is null or empty.UnauthorizedAccessException
: Thrown when the API key is invalid.RateLimitExceededException
: Thrown when the rate limit is exceeded.Exception
: Thrown when an error occurs while fetching the indicator.
Usage
To use the TaapiClient
class, you need to create an instance of it and call the appropriate methods with the required parameters. Here's an example:
Make sure to replace apiKey
, symbol
, exchange
, candlesInterval
, directParametersRequest
, and bulkRequest
with the actual values specific to your use case.
For more information on the TAAPI API and the available indicators, please refer to the TAAPI documentation.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. |
-
net8.0
- Newtonsoft.Json (>= 13.0.3)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Grumson.Utilities.Taapi:
Package | Downloads |
---|---|
Grumson.Utilities.Taapi.Signals
Powerful and easy-to-use library designed for building and managing trading signals using Finite State Machines (FSM). This library integrates seamlessly with the Taapi.io API, allowing users to leverage a wide range of trading indicators for creating custom trading strategies. |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
2.0.3 | 111 | 1/20/2025 |
2.0.2 | 64 | 1/19/2025 |
2.0.1 | 75 | 1/11/2025 |
2.0.0 | 59 | 1/9/2025 |
1.1.1 | 92 | 1/5/2025 |
1.1.0 | 113 | 1/3/2025 |
1.0.9 | 92 | 1/2/2025 |
1.0.8 | 83 | 12/31/2024 |
1.0.7 | 120 | 10/10/2024 |
1.0.6 | 102 | 10/10/2024 |
1.0.5 | 109 | 9/26/2024 |
1.0.4 | 99 | 9/24/2024 |
1.0.3 | 108 | 7/18/2024 |
1.0.2 | 101 | 7/16/2024 |
1.0.1 | 94 | 7/15/2024 |
1.0.0 | 92 | 7/15/2024 |