Fetch closed position to get last pnl realized
This commit is contained in:
@@ -67,4 +67,10 @@ public interface IExchangeService
|
||||
Task<Trade> GetTrade(string reference, string orderId, Ticker ticker);
|
||||
Task<List<FundingRate>> GetFundingRates();
|
||||
Task<IEnumerable<Position>> GetBrokerPositions(Account account);
|
||||
|
||||
Task<List<Position>> GetPositionHistory(
|
||||
Account account,
|
||||
Ticker ticker,
|
||||
DateTime? fromDate = null,
|
||||
DateTime? toDate = null);
|
||||
}
|
||||
@@ -1,5 +1,6 @@
|
||||
using Managing.Domain.Accounts;
|
||||
using Managing.Domain.Evm;
|
||||
using Managing.Domain.Trades;
|
||||
using static Managing.Common.Enums;
|
||||
|
||||
namespace Managing.Application.Abstractions.Services
|
||||
@@ -22,5 +23,7 @@ namespace Managing.Application.Abstractions.Services
|
||||
Task<decimal> GetEstimatedGasFeeUsdAsync();
|
||||
|
||||
Task<GasFeeData> GetGasFeeDataAsync();
|
||||
|
||||
Task<List<Position>> GetGmxPositionHistoryAsync(string account, int pageIndex = 0, int pageSize = 20, string? ticker = null);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user