Hi,
Thanks for the library, I'm just getting started with it. I'm getting the following error:
Error: FixAcceptor requires an options parameter
at Error (native)
at new Gateway
And this is my source:
// @flow
const quickfix = require('node-quickfix');
const FIX_CFG = "./fix.cfg";
class Gateway
{
fixAcceptor: quickfix.acceptor;
logonProvider: quickfix.logonProvider;
constructor()
{
this.logonProvider = new quickfix.logonProvider(function(logonResponse, msg, sessionId) {
if(msg.tags[553] == 'USERNAME' && msg.tags[554] == 'PASSWORD')
logonResponse.done(true); //SUCCESSFUL LOGON
else
logonResponse.done(false); //REJECT LOGON
});
this.fixAcceptor = new quickfix.acceptor({
propertiesFile: FIX_CFG,
logonProvider: this.logonProvider
});
}
}
module.exports = Gateway;
I built it based on the code samples in the project README.md but it does not seem to work. Any advice is welcome.
Thanks,
Hi,
Thanks for the library, I'm just getting started with it. I'm getting the following error:
And this is my source:
I built it based on the code samples in the project README.md but it does not seem to work. Any advice is welcome.
Thanks,