Skip to content

Commit

Permalink
Changed import paths
Browse files Browse the repository at this point in the history
  • Loading branch information
Ahmad Noman Musleh committed Mar 10, 2022
1 parent fa8a141 commit 4640ca3
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 9 deletions.
6 changes: 3 additions & 3 deletions ctrader_fix/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

from twisted.internet.endpoints import clientFromString
from twisted.application.internet import ClientService
from messages import *
from factory import Factory
from twisted.internet import reactor
from fixProtocol import FixProtocol
from twisted.internet import reactor
from ctrader_fix.messages import *
from ctrader_fix.factory import Factory
from ctrader_fix.fixProtocol import FixProtocol

class Client(ClientService):
def __init__(self, host, port, ssl=False, delimiter = "", retryPolicy=None, clock=None, prepareConnection=None, numberOfMessagesToSendPerSecond=5):
Expand Down
2 changes: 1 addition & 1 deletion ctrader_fix/fixProtocol.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env python

from twisted.internet.protocol import Protocol
from messages import ResponseMessage
from ctrader_fix.messages import ResponseMessage

class FixProtocol(Protocol):
_currentMessage = ''
Expand Down
2 changes: 1 addition & 1 deletion samples/ConsoleSample/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Console Sample

This is the console sample for Spotware OpenApiPy Python package.
This is the console sample for cTrader FIX API Python package.

It uses a single thread which is the Python main execution thread for both getting user inputs and sending/receiving messages to/from API.

Expand Down
4 changes: 0 additions & 4 deletions samples/ConsoleSample/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@
import webbrowser
import datetime
import json
import sys

sys.path.append("../../ctrader_fix")

from client import Client
from messages import *

Expand Down

0 comments on commit 4640ca3

Please sign in to comment.