Add synthApi (#27)
* Add synthApi * Put confidence for Synth proba * Update the code * Update readme * Fix bootstraping * fix github build * Update the endpoints for scenario * Add scenario and update backtest modal * Update bot modal * Update interfaces for synth * add synth to backtest * Add Kelly criterion and better signal * Update signal confidence * update doc * save leaderboard and prediction * Update nswag to generate ApiClient in the correct path * Unify the trading modal * Save miner and prediction * Update messaging and block new signal until position not close when flipping off * Rename strategies to indicators * Update doc * Update chart + add signal name * Fix signal direction * Update docker webui * remove crypto npm * Clean
This commit is contained in:
36
src/Managing.Domain/Synth/Models/MinerInfo.cs
Normal file
36
src/Managing.Domain/Synth/Models/MinerInfo.cs
Normal file
@@ -0,0 +1,36 @@
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace Managing.Domain.Synth.Models;
|
||||
|
||||
/// <summary>
|
||||
/// Represents a miner on the Synth API leaderboard
|
||||
/// </summary>
|
||||
public class MinerInfo
|
||||
{
|
||||
[JsonPropertyName("coldkey")]
|
||||
public string Coldkey { get; set; }
|
||||
|
||||
[JsonPropertyName("emission")]
|
||||
public decimal Emission { get; set; }
|
||||
|
||||
[JsonPropertyName("incentive")]
|
||||
public decimal Incentive { get; set; }
|
||||
|
||||
[JsonPropertyName("neuron_uid")]
|
||||
public int NeuronUid { get; set; }
|
||||
|
||||
[JsonPropertyName("pruning_score")]
|
||||
public decimal PruningScore { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Rank value from API (decimal representing the ranking score)
|
||||
/// </summary>
|
||||
[JsonPropertyName("rank")]
|
||||
public decimal Rank { get; set; }
|
||||
|
||||
[JsonPropertyName("stake")]
|
||||
public decimal Stake { get; set; }
|
||||
|
||||
[JsonPropertyName("updated_at")]
|
||||
public string UpdatedAt { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user