GMX v2 - Trading (#7)
* Move PrivateKeys.cs * Update gitignore * Update gitignore * updt * Extract GmxServiceTests.cs * Refact * update todo * Update code * Fix hashdata * Replace static token hashed datas * Set allowance * Add get orders * Add get orders tests * Add ignore * add close orders * revert * Add get gas limit * Start increasePosition. Todo: Finish GetExecutionFee and estimateGas * little refact * Update gitignore * Fix namespaces and clean repo * Add tests samples * Add execution fee * Add increase position * Handle backtest on the frontend * Add tests * Update increase * Test increase * fix increase * Fix size * Start get position * Update get positions * Fix get position * Update rpc and trade mappers * Finish close position * Fix leverage
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
using InfluxDB.Client;
|
||||
|
||||
namespace Managing.Infrastructure.Databases;
|
||||
namespace Managing.Infrastructure.Databases.InfluxDb.Abstractions;
|
||||
|
||||
public interface IInfluxDbRepository
|
||||
{
|
||||
@@ -8,4 +8,4 @@ public interface IInfluxDbRepository
|
||||
|
||||
Task<T> QueryAsync<T>(Func<QueryApi, Task<T>> action);
|
||||
void Write(Action<WriteApi> action);
|
||||
}
|
||||
}
|
||||
@@ -1,8 +1,8 @@
|
||||
namespace Managing.Infrastructure.Databases.Abstractions;
|
||||
namespace Managing.Infrastructure.Databases.InfluxDb.Abstractions;
|
||||
|
||||
public interface IInfluxDbSettings
|
||||
{
|
||||
string Url { get; set; }
|
||||
string Token { get; set; }
|
||||
string Organization { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
using InfluxDB.Client;
|
||||
using Managing.Infrastructure.Databases.Abstractions;
|
||||
using Managing.Infrastructure.Databases.InfluxDb.Abstractions;
|
||||
|
||||
namespace Managing.Infrastructure.Databases.InfluxDb;
|
||||
|
||||
@@ -10,7 +10,7 @@ public class InfluxDbRepository : IInfluxDbRepository
|
||||
public string Organization { get; set; }
|
||||
|
||||
public InfluxDbRepository(IInfluxDbSettings settings)
|
||||
{
|
||||
{
|
||||
_token = settings.Token;
|
||||
_url = settings.Url;
|
||||
Organization = settings.Organization;
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
using Managing.Infrastructure.Databases.Abstractions;
|
||||
using Managing.Infrastructure.Databases.InfluxDb.Abstractions;
|
||||
|
||||
namespace Managing.Infrastructure.Databases.InfluxDb.Models;
|
||||
|
||||
public class InfluxDbSettings : IInfluxDbSettings
|
||||
{
|
||||
public string Url { get ; set; }
|
||||
public string Url { get; set; }
|
||||
public string Token { get; set; }
|
||||
public string Organization { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user