ICRYPEX.Net
1.0.0
dotnet add package ICRYPEX.Net --version 1.0.0
NuGet\Install-Package ICRYPEX.Net -Version 1.0.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="ICRYPEX.Net" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="ICRYPEX.Net" Version="1.0.0" />
<PackageReference Include="ICRYPEX.Net" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add ICRYPEX.Net --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: ICRYPEX.Net, 1.0.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#addin nuget:?package=ICRYPEX.Net&version=1.0.0
#tool nuget:?package=ICRYPEX.Net&version=1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
ICRYPEX.Net
ICRYPEX borsası için geliştirilmiş .NET kütüphanesidir. Bu kütüphane, ICRYPEX borsasının API'sine kolay erişim sağlar ve kripto para işlemlerini programatik olarak gerçekleştirmenize olanak tanır.
Installation
dotnet add package ICRYPEX.Net
Features
- ICRYPEX borsası API entegrasyonu
- Kripto para alım-satım işlemleri
- Piyasa verilerine erişim
- Hesap yönetimi
Usage
Client Oluşturma
using ICRYPEX.Net.Services;
// Client oluşturma
var client = new IcrypexClient();
Public API Metodları
1. Exchange Bilgilerini Alma
// Tüm borsa bilgilerini alma
var exchangeInfo = await client.PublicApi.GetExchangeInfoAsync();
// Örnek kullanım
Console.WriteLine($"Borsa Versiyonu: {exchangeInfo.Version}");
foreach (var asset in exchangeInfo.Assets)
{
Console.WriteLine($"Varlık: {asset.Symbol}, İsim: {asset.Name}");
}
2. Tüm Sembollerin Fiyat Bilgilerini Alma
// Tüm sembollerin anlık fiyat bilgilerini alma
var tickers = await client.PublicApi.GetTickersAsync();
// Örnek kullanım
foreach (var ticker in tickers)
{
Console.WriteLine($"Sembol: {ticker.Symbol}");
Console.WriteLine($"Son Fiyat: {ticker.Last}");
Console.WriteLine($"24s Değişim: %{ticker.ChangePercentage}");
Console.WriteLine($"24s Hacim: {ticker.Volume}");
}
3. Emir Defteri Bilgilerini Alma
// Belirli bir sembol için emir defteri bilgilerini alma
var orderBook = await client.PublicApi.GetOrderBookAsync("BTCUSDT");
// Örnek kullanım
Console.WriteLine($"Sembol: {orderBook.PairSymbol}");
Console.WriteLine("Alış Emirleri:");
foreach (var bid in orderBook.Bids)
{
Console.WriteLine($"Fiyat: {bid.Price}, Miktar: {bid.Quantity}");
}
4. Son İşlemleri Alma
// Belirli bir sembol için son işlemleri alma
var lastTrades = await client.PublicApi.GetLastTradesAsync("BTCUSDT");
// Örnek kullanım
foreach (var trade in lastTrades.Trades)
{
Console.WriteLine($"Tarih: {DateTimeOffset.FromUnixTimeSeconds(trade.Timestamp)}");
Console.WriteLine($"Fiyat: {trade.Price}");
Console.WriteLine($"Miktar: {trade.Quantity}");
Console.WriteLine($"Yön: {trade.Side}");
}
5. Mum (K-Line) Verilerini Alma
using ICRYPEX.Net.Core.Enums;
// Belirli bir sembol için mum verilerini alma
var fromDate = DateTime.UtcNow.AddDays(-30);
var toDate = DateTime.UtcNow;
var klineData = await client.PublicApi.GetKlineDataAsync(
"BTCUSDT",
fromDate,
toDate,
KLineResolutionEnum.OneDay
);
// Örnek kullanım
foreach (var candle in klineData)
{
Console.WriteLine($"Tarih: {candle.Timestamp}");
Console.WriteLine($"Açılış: {candle.Open}");
Console.WriteLine($"Yüksek: {candle.High}");
Console.WriteLine($"Düşük: {candle.Low}");
Console.WriteLine($"Kapanış: {candle.Close}");
Console.WriteLine($"Hacim: {candle.Volume}");
}
K-Line Çözünürlük Seçenekleri
public enum KLineResolutionEnum
{
OneMinute = 1, // 1 dakika
FiveMinutes = 5, // 5 dakika
FifteenMinutes = 15,// 15 dakika
OneHour = 60, // 1 saat
FourHours = 240, // 4 saat
OneDay = 1440, // 1 gün
ThreeDays = 4320, // 3 gün
OneWeek = 10080, // 1 hafta
OneMonth = 43200 // 1 ay (30 gün)
}
Error Handling
try
{
var client = new IcrypexClient();
var result = await client.PublicApi.GetTickersAsync();
}
catch (Exception ex)
{
Console.WriteLine($"Hata oluştu: {ex.Message}");
}
License
This project is licensed under the MIT License - see the LICENSE file for details.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net9.0 is compatible. 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. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net9.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Pubic API entegrasyonları yapıldı.
- Exchange Info
- Tickers
- Order Book
- Last Trades
- K-Line Data