HI there I am trying to use a Python client to send a 'buy' message to Java strategy found in my Dukascopy JForex demo account. This Java socket strategy was found here
https://www.dukascopy.com/wiki/en/development/strategy-api/practices/socket-connection
I am able to get both Java JForex strategy code working with client Java code with no issue. When I try to do the same with Python, there is no connection for some reason. Here is the modified Python code:
#http://stackoverflow.com/questions/7749341/very-basic-python-client-socket-example
import socket
clientsocket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
clientsocket.connect(('localhost', 7001))
clientsocket.send('BUY')
clientsocket.close()
Question is what do you think is wrong? I can only think of is what parameters I use to set up the socket connection. Please let me know what you think. Thanks