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:
Oda
2025-01-30 23:06:22 +07:00
committed by GitHub
parent ecaa89c67b
commit 65bdb8e34f
156 changed files with 11253 additions and 4073 deletions

20
.gitignore vendored
View File

@@ -347,22 +347,6 @@ obj
/Managing/Managing.Infrastructure.Storage/obj/Managing.Infrastructure.Storage.csproj.nuget.g.targets
/Managing/Managing.Infrastructure.Storage/obj/project.assets.json
/Managing/Managing.Infrastructure.Storage/obj/project.nuget.cache
/Managing/Managing.Infrastructure.Storage/bin/Debug/netstandard2.0/Managing.Application.dll
/Managing/Managing.Infrastructure.Storage/bin/Debug/netstandard2.0/Managing.Application.pdb
/Managing/Managing.Infrastructure.Storage/bin/Debug/netstandard2.0/Managing.Common.dll
/Managing/Managing.Infrastructure.Storage/bin/Debug/netstandard2.0/Managing.Common.pdb
/Managing/Managing.Infrastructure.Storage/bin/Debug/netstandard2.0/Managing.Core.dll
/Managing/Managing.Infrastructure.Storage/bin/Debug/netstandard2.0/Managing.Core.pdb
/Managing/Managing.Infrastructure.Storage/bin/Debug/netstandard2.0/Managing.Domain.dll
/Managing/Managing.Infrastructure.Storage/bin/Debug/netstandard2.0/Managing.Domain.pdb
/Managing/Managing.Infrastructure.Storage/obj/Debug/netstandard2.0/Managing.Infrastructure.Storage.assets.cache
/Managing/Managing.Infrastructure.Storage/obj/Debug/netstandard2.0/Managing.Infrastructure.Storage.csprojAssemblyReference.cache
/Managing/Managing.Infrastructure.Storage/obj/Managing.Infrastructure.Storage.csproj.nuget.dgspec.json
/Managing/Managing.Infrastructure.Storage/obj/Managing.Infrastructure.Storage.csproj.nuget.g.props
/Managing/Managing.Infrastructure.Storage/obj/Managing.Infrastructure.Storage.csproj.nuget.g.targets
/Managing/Managing.Infrastructure.Storage/obj/project.assets.json
/Managing/Managing.Infrastructure.Storage/obj/project.nuget.cache
/Managing/Managing.Infrastructure.Storage/bin/Debug/netstandard2.0/Managing.Application.dll
/Managing/src/Managing.Api/failures.txt
/Managing/src/Managing.Api.Workers/failures.txt
@@ -374,6 +358,8 @@ src/config.json
src/Managing.WebApp/src/pages/desk/desk.tsx
/src/Managing.Infrastructure.Tests/EvmBaseTests.cs
src/Managing.Api.Workers/appsettings.json
src/config.json
src/Managing.Api.Workers/appsettings.Oda-Sandbox.json
/src/Managing.WebApp/package-lock.json
src/Managing.Infrastructure.Tests/PrivateKeys.cs
/src/Managing.Infrastructure.Tests/PrivateKeys.cs
src/Managing.Infrastructure.Tests/PrivateKeys.cs