Skip to content
This repository has been archived by the owner on Jun 16, 2024. It is now read-only.

Lots of fixes / additions and update to net5.0 #3

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions FtxApi/Client.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,22 @@
{
public class Client
{
public string Subaccount { get; }
public string ApiKey { get; }

public string ApiSecret { get; }

public Client()
{
ApiKey = "";
ApiSecret = "";
Subaccount = "";
}

public Client(string apiKey, string apiSecret)
public Client(string apiKey, string apiSecret, string subaccount)
{
ApiKey = apiKey;
ApiSecret = apiSecret;
Subaccount = subaccount;
}

}
}
7 changes: 5 additions & 2 deletions FtxApi/Enums/OrderType.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@
{
public enum OrderType : byte
{
limit,
market
Limit,
Market,
Stop,
TrailingStop,
TakeProfit,
}
}
6 changes: 3 additions & 3 deletions FtxApi/Enums/SideType.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
namespace FtxApi.Enums
{
public enum SideType : byte
public enum SideType
{
buy,
sell
Buy,
Sell
}
}
22 changes: 14 additions & 8 deletions FtxApi/FtxApi.csproj
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netcoreapp3.1</TargetFramework>
<OutputType>Library</OutputType>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
<TargetFrameworks>net5.0;net5.0-windows</TargetFrameworks>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="LibLog" Version="5.0.8">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.CSharp" Version="4.7.0" />
<PackageReference Include="System.ComponentModel.Composition" Version="4.7.0" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
<PackageReference Include="System.ComponentModel.Composition" Version="5.0.0" />
<PackageReference Include="System.Data.DataSetExtensions" Version="4.5.0" />
</ItemGroup>
<ItemGroup>
Expand All @@ -15,18 +20,19 @@
<PackageReference Include="System.IO" Version="4.3.0" />
<PackageReference Include="System.Linq" Version="4.3.0" />
<PackageReference Include="System.Net.NameResolution" Version="4.3.0" />
<PackageReference Include="System.Net.Security" Version="4.3.0" />
<PackageReference Include="System.Net.Security" Version="4.3.2" />
<PackageReference Include="System.Net.Sockets" Version="4.3.0" />
<PackageReference Include="System.Runtime" Version="4.3.0" />
<PackageReference Include="System.Runtime.Extensions" Version="4.3.0" />
<PackageReference Include="System.Runtime" Version="4.3.1" />
<PackageReference Include="System.Runtime.Extensions" Version="4.3.1" />
<PackageReference Include="System.Runtime.InteropServices" Version="4.3.0" />
<PackageReference Include="System.Security.Cryptography.Algorithms" Version="4.3.0" />
<PackageReference Include="System.Security.Cryptography.Algorithms" Version="4.3.1" />
<PackageReference Include="System.Security.Cryptography.Encoding" Version="4.3.0" />
<PackageReference Include="System.Security.Cryptography.Primitives" Version="4.3.0" />
<PackageReference Include="System.Security.Cryptography.X509Certificates" Version="4.3.0" />
<PackageReference Include="System.Text.RegularExpressions" Version="4.3.0" />
<PackageReference Include="System.Security.Cryptography.X509Certificates" Version="4.3.2" />
<PackageReference Include="System.Text.RegularExpressions" Version="4.3.1" />
<PackageReference Include="System.Threading" Version="4.3.0" />
<PackageReference Include="System.Threading.Timer" Version="4.3.0" />
<PackageReference Include="Utf8Json" Version="1.3.7" />
<PackageReference Include="WebSocket4Net" Version="0.15.2" />
</ItemGroup>
</Project>
Loading