Skip to content

Commit 0743ce7

Browse files
committed
first commit
0 parents  commit 0743ce7

File tree

4 files changed

+81
-0
lines changed

4 files changed

+81
-0
lines changed
24 KB
Binary file not shown.

InteractiveBrokersPythonBot.py

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#Imports
2+
import ibapi
3+
from ibapi.client import EClient
4+
from ibapi.wrapper import EWrapper
5+
6+
#Vars
7+
8+
#Class for Interactive Brokers Connection
9+
class IBApi(EWrapper,EClient):
10+
def __init__(self):
11+
EClient.__init__(self, self)
12+
13+
#Bot Logic
14+
class Bot:
15+
ib = None
16+
def __init__(self):
17+
#Connect to IB on init
18+
ib = IBApi()
19+
ib.connect("127.0.0.1", 7496,1)
20+
ib.run()
21+
22+
#Start Bot
23+
bot = Bot()

InteractiveBrokersPythonBot.pyproj

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
2+
<PropertyGroup>
3+
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
4+
<SchemaVersion>2.0</SchemaVersion>
5+
<ProjectGuid>4786e9ef-3047-46a2-bae7-943ad2f0cba0</ProjectGuid>
6+
<ProjectHome>.</ProjectHome>
7+
<StartupFile>InteractiveBrokersPythonBot.py</StartupFile>
8+
<SearchPath>
9+
</SearchPath>
10+
<WorkingDirectory>.</WorkingDirectory>
11+
<OutputPath>.</OutputPath>
12+
<Name>InteractiveBrokersPythonBot</Name>
13+
<RootNamespace>InteractiveBrokersPythonBot</RootNamespace>
14+
</PropertyGroup>
15+
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
16+
<DebugSymbols>true</DebugSymbols>
17+
<EnableUnmanagedDebugging>false</EnableUnmanagedDebugging>
18+
</PropertyGroup>
19+
<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
20+
<DebugSymbols>true</DebugSymbols>
21+
<EnableUnmanagedDebugging>false</EnableUnmanagedDebugging>
22+
</PropertyGroup>
23+
<ItemGroup>
24+
<Compile Include="InteractiveBrokersPythonBot.py" />
25+
</ItemGroup>
26+
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\Python Tools\Microsoft.PythonTools.targets" />
27+
<!-- Uncomment the CoreCompile target to enable the Build command in
28+
Visual Studio and specify your pre- and post-build commands in
29+
the BeforeBuild and AfterBuild targets below. -->
30+
<!--<Target Name="CoreCompile" />-->
31+
<Target Name="BeforeBuild">
32+
</Target>
33+
<Target Name="AfterBuild">
34+
</Target>
35+
</Project>

InteractiveBrokersPythonBot.sln

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio Version 16
4+
VisualStudioVersion = 16.0.30711.63
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{888888A0-9F3D-457C-B088-3A5042F75D52}") = "InteractiveBrokersPythonBot", "InteractiveBrokersPythonBot.pyproj", "{4786E9EF-3047-46A2-BAE7-943AD2F0CBA0}"
7+
EndProject
8+
Global
9+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
10+
Debug|Any CPU = Debug|Any CPU
11+
Release|Any CPU = Release|Any CPU
12+
EndGlobalSection
13+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
14+
{4786E9EF-3047-46A2-BAE7-943AD2F0CBA0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15+
{4786E9EF-3047-46A2-BAE7-943AD2F0CBA0}.Release|Any CPU.ActiveCfg = Release|Any CPU
16+
EndGlobalSection
17+
GlobalSection(SolutionProperties) = preSolution
18+
HideSolutionNode = FALSE
19+
EndGlobalSection
20+
GlobalSection(ExtensibilityGlobals) = postSolution
21+
SolutionGuid = {1EAC8935-1C45-4D2F-A399-208530FA083B}
22+
EndGlobalSection
23+
EndGlobal

0 commit comments

Comments
 (0)