AVMTradeReporter.Models 1.0.0

dotnet add package AVMTradeReporter.Models --version 1.0.0
                    
NuGet\Install-Package AVMTradeReporter.Models -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="AVMTradeReporter.Models" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="AVMTradeReporter.Models" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="AVMTradeReporter.Models" />
                    
Project file
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 AVMTradeReporter.Models --version 1.0.0
                    
#r "nuget: AVMTradeReporter.Models, 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.
#:package AVMTradeReporter.Models@1.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=AVMTradeReporter.Models&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=AVMTradeReporter.Models&version=1.0.0
                    
Install as a Cake Tool

AVMTradeReporter.Models

A .NET library containing data models for the AVM Trade Reporter, providing structured representations of Algorand DEX data including pools, trades, liquidity events, and OHLC (Open, High, Low, Close) data.

Features

  • Pool Models: Represent DEX pool states with asset pairs, amounts, and protocol-specific data
  • Trade Models: Capture trade transactions with timestamps, amounts, and metadata
  • Liquidity Models: Track liquidity additions and removals
  • Aggregated Pool Models: Summarized pool data across multiple protocols
  • OHLC Models: Time-series data for price analysis
  • Asset Models: Algorand asset metadata and pricing information

Supported Protocols

  • Pact: Pact.fi DEX protocol
  • Tiny: TinyMan DEX protocol
  • Biatec: Biatec DEX protocol

Usage

using AVMTradeReporter.Models.Data;

// Example: Working with a Pool
var pool = new Pool
{
    PoolAddress = "ABC123...",
    Protocol = "Pact",
    AssetIdA = 0, // ALGO
    AssetIdB = 31566704,
    RealAmountA = 1000.0m,
    RealAmountB = 50000.0m,
    VirtualAmountA = 1000.0m,
    VirtualAmountB = 50000.0m,
    Timestamp = DateTime.UtcNow
};

// Example: Working with a Trade
var trade = new Trade
{
    TxId = "transaction_id",
    PoolAddress = "ABC123...",
    AssetIdA = 0,
    AssetIdB = 31566704,
    AmountA = 100.0m,
    AmountB = 5000.0m,
    Timestamp = DateTime.UtcNow
};

Installation

dotnet add package AVMTradeReporter.Models

Dependencies

  • .NET 8.0 or later
  • Newtonsoft.Json (>= 13.0.3)
  • System.Text.Json (>= 8.0.5)

License

MIT License - see the repository for details.

Contributing

Contributions are welcome! Please see the main repository for contribution guidelines.

Product 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.  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.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.0 243 11/9/2025