Gmx v2 - Funding rates (#6)

* Setup GMX v2

* Add get markets

* Map token with service

* Add get market info data

* Add get markets

* Add get market token prices

* Get markets infos multicall

* Try call datastore

* Add some tests to figure out why datastore call dont work

* Update funding rates

* clean
This commit is contained in:
Oda
2024-08-17 06:50:18 +07:00
committed by GitHub
parent b4087753c7
commit 68aa7fff5d
75 changed files with 8979 additions and 608 deletions

View File

@@ -0,0 +1,45 @@
using Newtonsoft.Json;
namespace Managing.Infrastructure.Evm.Models.Gmx.v2;
public class GmxStoreKeys
{
[JsonProperty("longPoolAmount", NullValueHandling = NullValueHandling.Ignore)]
public string LongPoolAmount { get; set; }
[JsonProperty("shortPoolAmount", NullValueHandling = NullValueHandling.Ignore)]
public string ShortPoolAmount { get; set; }
[JsonProperty("positionImpactPoolAmount", NullValueHandling = NullValueHandling.Ignore)]
public string PositionImpactPoolAmount { get; set; }
[JsonProperty("swapImpactPoolAmountLong", NullValueHandling = NullValueHandling.Ignore)]
public string SwapImpactPoolAmountLong { get; set; }
[JsonProperty("swapImpactPoolAmountShort", NullValueHandling = NullValueHandling.Ignore)]
public string SwapImpactPoolAmountShort { get; set; }
[JsonProperty("longInterestUsingLongToken", NullValueHandling = NullValueHandling.Ignore)]
public string LongInterestUsingLongToken { get; set; }
[JsonProperty("longInterestUsingShortToken", NullValueHandling = NullValueHandling.Ignore)]
public string LongInterestUsingShortToken { get; set; }
[JsonProperty("shortInterestUsingLongToken", NullValueHandling = NullValueHandling.Ignore)]
public string ShortInterestUsingLongToken { get; set; }
[JsonProperty("shortInterestUsingShortToken", NullValueHandling = NullValueHandling.Ignore)]
public string ShortInterestUsingShortToken { get; set; }
[JsonProperty("longInterestInTokensUsingLongToken", NullValueHandling = NullValueHandling.Ignore)]
public string LongInterestInTokensUsingLongToken { get; set; }
[JsonProperty("longInterestInTokensUsingShortToken", NullValueHandling = NullValueHandling.Ignore)]
public string LongInterestInTokensUsingShortToken { get; set; }
[JsonProperty("shortInterestInTokensUsingLongToken", NullValueHandling = NullValueHandling.Ignore)]
public string ShortInterestInTokensUsingLongToken { get; set; }
[JsonProperty("shortInterestInTokensUsingShortToken", NullValueHandling = NullValueHandling.Ignore)]
public string ShortInterestInTokensUsingShortToken { get; set; }
}