From a16ff308739e61e86ba436eef201d481ae36ab07 Mon Sep 17 00:00:00 2001 From: Kevin Darby Date: Fri, 30 Nov 2018 18:32:51 -0500 Subject: [PATCH] lets see how hard this is --- spark_client.sln | 22 +++++++++++++ .../Properties/AssemblyAttributes.cs | 1 + src/client/spark_fix/FIXMain.cs | 31 +++++++++++++++++++ .../Properties/AssemblyAttributes.cs | 2 ++ src/client/spark_fix/README.md | 2 ++ src/client/spark_fix/spark_fix.csproj | 30 ++++++++++++++++++ 6 files changed, 88 insertions(+) create mode 100644 src/client/spark_fix/FIXMain.cs create mode 100644 src/client/spark_fix/Properties/AssemblyAttributes.cs create mode 100644 src/client/spark_fix/README.md create mode 100644 src/client/spark_fix/spark_fix.csproj diff --git a/spark_client.sln b/spark_client.sln index 1624dd1a5..9eb9adda9 100644 --- a/spark_client.sln +++ b/spark_client.sln @@ -23,6 +23,8 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "spark_test", "src\client\sp EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "spark_excel", "src\client\spark_excel\spark_excel.csproj", "{BE9F27C3-B583-47DF-95FA-1F8BBC89DCCB}" EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "spark_fix", "src\client\spark_fix\spark_fix.csproj", "{D8031C13-7BEA-430A-BB60-40927D15CFC3}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -219,6 +221,26 @@ Global {BE9F27C3-B583-47DF-95FA-1F8BBC89DCCB}.RelWithDebInfo|x64.Build.0 = Release|x64 {BE9F27C3-B583-47DF-95FA-1F8BBC89DCCB}.RelWithDebInfo|x86.ActiveCfg = Release|x64 {BE9F27C3-B583-47DF-95FA-1F8BBC89DCCB}.RelWithDebInfo|x86.Build.0 = Release|x64 + {D8031C13-7BEA-430A-BB60-40927D15CFC3}.Debug|Any CPU.ActiveCfg = Debug|x64 + {D8031C13-7BEA-430A-BB60-40927D15CFC3}.Debug|x64.ActiveCfg = Debug|x64 + {D8031C13-7BEA-430A-BB60-40927D15CFC3}.Debug|x64.Build.0 = Debug|x64 + {D8031C13-7BEA-430A-BB60-40927D15CFC3}.Debug|x86.ActiveCfg = Debug|x64 + {D8031C13-7BEA-430A-BB60-40927D15CFC3}.MinSizeRel|Any CPU.ActiveCfg = Release|x64 + {D8031C13-7BEA-430A-BB60-40927D15CFC3}.MinSizeRel|Any CPU.Build.0 = Release|x64 + {D8031C13-7BEA-430A-BB60-40927D15CFC3}.MinSizeRel|x64.ActiveCfg = Release|x64 + {D8031C13-7BEA-430A-BB60-40927D15CFC3}.MinSizeRel|x64.Build.0 = Release|x64 + {D8031C13-7BEA-430A-BB60-40927D15CFC3}.MinSizeRel|x86.ActiveCfg = Release|x64 + {D8031C13-7BEA-430A-BB60-40927D15CFC3}.MinSizeRel|x86.Build.0 = Release|x64 + {D8031C13-7BEA-430A-BB60-40927D15CFC3}.Release|Any CPU.ActiveCfg = Release|x64 + {D8031C13-7BEA-430A-BB60-40927D15CFC3}.Release|x64.ActiveCfg = Release|x64 + {D8031C13-7BEA-430A-BB60-40927D15CFC3}.Release|x64.Build.0 = Release|x64 + {D8031C13-7BEA-430A-BB60-40927D15CFC3}.Release|x86.ActiveCfg = Release|x64 + {D8031C13-7BEA-430A-BB60-40927D15CFC3}.RelWithDebInfo|Any CPU.ActiveCfg = Release|x64 + {D8031C13-7BEA-430A-BB60-40927D15CFC3}.RelWithDebInfo|Any CPU.Build.0 = Release|x64 + {D8031C13-7BEA-430A-BB60-40927D15CFC3}.RelWithDebInfo|x64.ActiveCfg = Release|x64 + {D8031C13-7BEA-430A-BB60-40927D15CFC3}.RelWithDebInfo|x64.Build.0 = Release|x64 + {D8031C13-7BEA-430A-BB60-40927D15CFC3}.RelWithDebInfo|x86.ActiveCfg = Release|x64 + {D8031C13-7BEA-430A-BB60-40927D15CFC3}.RelWithDebInfo|x86.Build.0 = Release|x64 EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/src/client/spark_api/Properties/AssemblyAttributes.cs b/src/client/spark_api/Properties/AssemblyAttributes.cs index dbfda4671..c81bd6586 100644 --- a/src/client/spark_api/Properties/AssemblyAttributes.cs +++ b/src/client/spark_api/Properties/AssemblyAttributes.cs @@ -4,4 +4,5 @@ using System.Runtime.CompilerServices; [assembly: InternalsVisibleTo("sparkcmd")] [assembly: InternalsVisibleTo("spark_test")] [assembly: InternalsVisibleTo("spark_sdk")] +[assembly: InternalsVisibleTo("spark_fix")] diff --git a/src/client/spark_fix/FIXMain.cs b/src/client/spark_fix/FIXMain.cs new file mode 100644 index 000000000..6ecdd2dc7 --- /dev/null +++ b/src/client/spark_fix/FIXMain.cs @@ -0,0 +1,31 @@ +using System; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using System.Reactive.Disposables; + +using bts.api; +using bts.api.core; +using bts.api.md; + +namespace bts.fix +{ + + public class SDKMain + { + private static void user_test() + { + var ctx = new ServiceContext(); + + var s = ctx.locate(); + var r = new api.user.GetUsersRequest(); + var resp = s.get_users(r); + Console.WriteLine("{0}", resp); + } + public static void Main(string[] args) + { + bts.Log.Gen.info("Welcome to the BTS FIX API"); + user_test(); + } + } +} \ No newline at end of file diff --git a/src/client/spark_fix/Properties/AssemblyAttributes.cs b/src/client/spark_fix/Properties/AssemblyAttributes.cs new file mode 100644 index 000000000..116424f20 --- /dev/null +++ b/src/client/spark_fix/Properties/AssemblyAttributes.cs @@ -0,0 +1,2 @@ +using System.Runtime.CompilerServices; + diff --git a/src/client/spark_fix/README.md b/src/client/spark_fix/README.md new file mode 100644 index 000000000..a4a9554ff --- /dev/null +++ b/src/client/spark_fix/README.md @@ -0,0 +1,2 @@ +# BTS Spark FIX Adapter + diff --git a/src/client/spark_fix/spark_fix.csproj b/src/client/spark_fix/spark_fix.csproj new file mode 100644 index 000000000..607f2e3e9 --- /dev/null +++ b/src/client/spark_fix/spark_fix.csproj @@ -0,0 +1,30 @@ + + + netcoreapp2.1 + Exe + true + + Blue Trading Systems + Blue Trading Systems + Spark + + x64 + AnyCPU + true + + 1.0.0 + + + + + + + + + + + + + + +