API Support » How to connect to port 9400 using stunnel with Windows 10 Jul 15, 2024 @ 12:59 PM (Total replies: 1) | |||||
I am unsuccessfully trying to trade live over port 9400. Here is my stunnel configuration file: client = yes accept = 127.0.0.1:9400 connect = 192.111.85.171:9400 cert = C:\Certificates\gain-futures.pem CAfile = C:\Certificates\gain-futures.pem verify = 3 verifyChain = yes verifyPeer = yes checkHost = 192.111.85.171 checkIP = api.gainfutures.com sslVersion = TLSv1.1 options = NO_SSLv2 options = NO_SSLv3 OCSPaia = yes Note that I have downloaded the certificate from gainfutures.com Here is the log file from stunnel when I use that configuration: 2024.07.15 11:56:08 LOG7[service]: Found 1 ready file descriptor(s) 2024.07.15 11:56:08 LOG7[service]: FD=580 ifds=r-x ofds=r-- 2024.07.15 11:56:08 LOG7[service]: FD=640 ifds=r-x ofds=--- 2024.07.15 11:56:08 LOG7[service]: Dispatching a signal from the signal pipe 2024.07.15 11:56:08 LOG7[service]: Processing SIGNAL_RELOAD_CONFIG 2024.07.15 11:56:08 LOG6[service]: Initializing inetd mode configuration 2024.07.15 11:56:08 LOG7[service]: Running on Windows 6.2 2024.07.15 11:56:08 LOG5[service]: Reading configuration from file C:\Program Files (x86)\stunnel\config\stunnel.conf 2024.07.15 11:56:08 LOG5[service]: UTF-8 byte order mark not detected 2024.07.15 11:56:08 LOG5[service]: FIPS mode disabled 2024.07.15 11:56:08 LOG6[service]: Compression disabled 2024.07.15 11:56:08 LOG7[service]: No PRNG seeding was required 2024.07.15 11:56:08 LOG6[service]: Initializing service [GainFuturesConnect] 2024.07.15 11:56:08 LOG7[service]: Initializing context [GainFuturesConnect] 2024.07.15 11:56:08 LOG6[service]: OpenSSL security level is used: 2 2024.07.15 11:56:08 LOG7[service]: Ciphers: HIGH:!aNULL:!SSLv2:!DH:!kDHEPSK 2024.07.15 11:56:08 LOG7[service]: TLSv1.3 ciphersuites: TLS_AES_256_GCM_SHA384:TLS_AES_128_GCM_SHA256:TLS_CHACHA20_POLY1305_SHA256 2024.07.15 11:56:08 LOG7[service]: TLS options: 0x2100000 (+0x2000000, -0x0) 2024.07.15 11:56:08 LOG6[service]: Session resumption enabled 2024.07.15 11:56:08 LOG6[service]: Loading certificate from file: C:\Certificates\gain-futures.pem 2024.07.15 11:56:08 LOG3[service]: error queue: ssl/ssl_rsa.c:472: error:0A080002:SSL routines::system lib 2024.07.15 11:56:08 LOG3[service]: error queue: crypto/bio/bss_file.c:300: error:10080002:BIO routines::system lib 2024.07.15 11:56:08 LOG3[service]: SSL_CTX_use_certificate_chain_file: crypto/bio/bss_file.c:297: error:80000002:system library::No such file or directory 2024.07.15 11:56:08 LOG3[service]: Service [GainFuturesConnect]: Failed to initialize TLS context 2024.07.15 11:56:08 LOG3[service]: Configuration failed 2024.07.15 11:56:08 LOG7[service]: Deallocating temporary section defaults 2024.07.15 11:56:08 LOG7[service]: Cleaning up context [(null)] 2024.07.15 11:56:08 LOG7[service]: Deallocating section [GainFuturesConnect] 2024.07.15 11:56:08 LOG7[service]: Cleaning up context [GainFuturesConnect] 2024.07.15 11:56:08 LOG3[service]: Failed to reload the configuration file Note that I can get what appears a successful connection through stunnel when I use my certificate as a client, but I still get no response from port 9400. The C++ code snippet seems to indicate that the SSL interchange is created to confirm that we are, indeed, connected to gainfutures.com, and is not concerned with who I am. If this is incorrect, please let me know! Thanks in advance for any help you can provide. -William Wood Any help with this matter William Wood
|
|||||
API Support » Can I get historical data through FIX API Sep 12, 2023 @ 07:19 PM (Total replies: 1) | |||||
Is it possible to get historical market data over the FIX api at Gain Futures? Thanks William Wood
|
|||||
API Support » Is there a c++ header for using the GF API Sep 01, 2023 @ 05:30 PM (Total replies: 0) | |||||
It seems there are no header files declared in the example code. Can anyone describe what they need to be in order to get functionality from the API examples? Thanks -WW William Wood
|
|||||
FIX Support » Unable to install quickfix on Windows 10 Aug 29, 2023 @ 03:42 PM (Total replies: 0) | |||||
I am trying to use Quickfix on a Windows 10 system. Although I may be mistaken, it appears that quickfix has not been supported for several years now. Has anyone had any luck doing this? I have tried using the source code, but it is fraught with errors that seem incompatible with MS visual studio (I am using 2015) Any insight into this problem would be appreciated. William Wood
|
|||||
API Support » Trying to compile example Aug 28, 2023 @ 11:58 AM (Total replies: 0) | |||||
I am working with the example: LoginDlg.cpp when I compile using the command line: >> g++ LoginDlg.cpp -I D:\PyLibs\windows I get the following error messages (note that the included directory on the command line contains stdafx.h) CppCOMSample.h:7:3: error: #error "include 'stdafx.h' before including this file for PCH" #error "include 'stdafx.h' before including this file for PCH" ^~~~~ In file included from LoginDlg.cpp:5: CppCOMSample.h:18:1: error: expected class-name before '{' token { ^ CppCOMSample.h:28:22: error: expected ';' at end of member declaration DECLARE_MESSAGE_MAP() ^ ; In file included from LoginDlg.cpp:6: LoginDlg.h:7:1: error: expected class-name before '{' token { ^ LoginDlg.h:11:16: error: expected ')' before '*' token CLoginDlg(CWnd* pParent = NULL); // standard constructor ~ ^ ) LoginDlg.h:16:2: error: 'CString' does not name a type CString Username() const { return m_Username; } ^~~~~~~ LoginDlg.h:17:2: error: 'CString' does not name a type CString Password() const { return m_Password; } ^~~~~~~ LoginDlg.h:18:2: error: 'CString' does not name a type CString Server() const { return m_Server; } ^~~~~~~ LoginDlg.h:21:30: error: 'CDataExchange' has not been declared virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support ^~~~~~~~~~~~~ LoginDlg.h:25:2: error: 'CString' does not name a type CString m_Username; ^~~~~~~ LoginDlg.h:26:2: error: 'CString' does not name a type CString m_Password, m_Server; ^~~~~~~ LoginDlg.cpp:11:30: error: 'CDialog' has not been declared IMPLEMENT_DYNAMIC(CLoginDlg, CDialog) ^~~~~~~ LoginDlg.cpp:13:1: error: expected constructor, destructor, or type conversion before 'CLoginDlg' CLoginDlg::CLoginDlg(CWnd* pParent /*=NULL*/) ^~~~~~~~~ LoginDlg.cpp:26:32: error: variable or field 'DoDataExchange' declared void void CLoginDlg::DoDataExchange(CDataExchange* pDX) ^~~~~~~~~~~~~ LoginDlg.cpp:26:32: error: 'CDataExchange' was not declared in this scope LoginDlg.cpp:26:47: error: 'pDX' was not declared in this scope void CLoginDlg::DoDataExchange(CDataExchange* pDX) ^~~ LoginDlg.cpp:35:30: error: 'CDialog' has not been declared BEGIN_MESSAGE_MAP(CLoginDlg, CDialog) ^~~~~~~ LoginDlg.cpp:36:1: error: expected constructor, destructor, or type conversion before 'END_MESSAGE_MAP' END_MESSAGE_MAP() ^~~~~~~~~~~~~~~ Thank you -William Wood William Wood
|
|||||
FIX Support » Python FIX API Aug 27, 2023 @ 01:57 PM (Total replies: 8) | |||||
Hi - I am trying to install transfixed, and the wheel for quickfix is not working for me. I have tried numerous versions (some downloaded from the UCI website) and none seems to work. I am using a Windows 10 system, with python 3.7 Any ideas? Thanks |