commit 72af6108e5786d72a764992ec680c5482b8fed91 Author: Harald Wolff Date: Thu Oct 26 18:52:58 2017 +0200 Initial Commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..4e82d27 --- /dev/null +++ b/.gitignore @@ -0,0 +1,40 @@ +# Autosave files +*~ + +# build +[Oo]bj/ +[Bb]in/ +packages/ +TestResults/ + +# globs +Makefile.in +*.DS_Store +*.sln.cache +*.suo +*.cache +*.pidb +*.userprefs +*.usertasks +config.log +config.make +config.status +aclocal.m4 +install-sh +autom4te.cache/ +*.user +*.tar.gz +tarballs/ +test-results/ +Thumbs.db + +# Mac bundle stuff +*.dmg +*.app + +# resharper +*_Resharper.* +*.Resharper + +# dotCover +*.dotCover diff --git a/Order.cs b/Order.cs new file mode 100644 index 0000000..aea7ccc --- /dev/null +++ b/Order.cs @@ -0,0 +1,12 @@ +using System; +namespace sharp.trading +{ + public class Order + { + public Double OrderVolume { get; set; } + public Double FilledVolume { get; set; } + public Double LimitPrice { get; set; } + + + } +} diff --git a/OrderBook.cs b/OrderBook.cs new file mode 100644 index 0000000..397fde7 --- /dev/null +++ b/OrderBook.cs @@ -0,0 +1,13 @@ +using System; +namespace sharp.trading +{ + public class OrderBook + { + public VolumeRate[] Bids { get; set; } + public VolumeRate[] Asks { get; set; } + + public OrderBook() + { + } + } +} diff --git a/Properties/AssemblyInfo.cs b/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..8a6bbef --- /dev/null +++ b/Properties/AssemblyInfo.cs @@ -0,0 +1,26 @@ +using System.Reflection; +using System.Runtime.CompilerServices; + +// Information about this assembly is defined by the following attributes. +// Change them to the values specific to your project. + +[assembly: AssemblyTitle("sharp.trading")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("")] +[assembly: AssemblyCopyright("")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// The assembly version has the format "{Major}.{Minor}.{Build}.{Revision}". +// The form "{Major}.{Minor}.*" will automatically update the build and revision, +// and "{Major}.{Minor}.{Build}.*" will update just the revision. + +[assembly: AssemblyVersion("1.0.*")] + +// The following attributes are used to specify the signing key for the assembly, +// if desired. See the Mono documentation for more information about signing. + +//[assembly: AssemblyDelaySign(false)] +//[assembly: AssemblyKeyFile("")] diff --git a/TradingConnection.cs b/TradingConnection.cs new file mode 100644 index 0000000..86f1a38 --- /dev/null +++ b/TradingConnection.cs @@ -0,0 +1,15 @@ +using System; +namespace sharp.trading +{ + public abstract class TradingConnection + { + public TradingConnection() + { + } + + public abstract OrderBook getOrderBook(); + + + + } +} diff --git a/VolumeRate.cs b/VolumeRate.cs new file mode 100644 index 0000000..1c8e644 --- /dev/null +++ b/VolumeRate.cs @@ -0,0 +1,16 @@ +using System; +namespace sharp.trading +{ + public struct VolumeRate + { + public Double Volume { get; set; } + public Double Price { get; set; } + + public VolumeRate(Double Volume,Double Price) + { + this.Volume = Volume; + this.Price = Price; + } + + } +} diff --git a/sharp.trading.csproj b/sharp.trading.csproj new file mode 100644 index 0000000..3926ba3 --- /dev/null +++ b/sharp.trading.csproj @@ -0,0 +1,40 @@ + + + + Debug + AnyCPU + {CAAC53CC-671C-4B1E-8403-1E53D1D40D66} + Library + sharp.trading + sharp.trading + v4.5 + + + true + full + false + bin\Debug + DEBUG; + prompt + 4 + false + + + true + bin\Release + prompt + 4 + false + + + + + + + + + + + + + \ No newline at end of file