ForexConnect API Rounding Error?

Moderator: Moderator

ForexConnect API Rounding Error?

Postby imxuf92 » Mon Jan 25, 2016 1:52 pm

I'm noticing that the ForexConnect API O2GMarketDataSnapshotResponseReader.getBidOpen(x) method returns slightly different data... off by a fraction of a pip in some cases.

I'm guessing this is an internal rounding error. Examples include:

EUR/CAD
1/25/2016, H3 Candle @ 3am
Marketscope candle shows Open = 1.53538 (BID)
API returns 1.52537


GBP/JPY
1/25/2016, H3 Candle @ 3am
Marketscope candle shows Open = 168.820 (BID)
API returns 168.821

Can this be fixed? Is there a way to get the raw data without the rounding? The issues is affecting some of my candle size-specific logic on an app I'm writing.
imxuf92
 
Posts: 26
Joined: Sat Jan 23, 2016 6:55 pm

Re: ForexConnect API Rounding Error?

Postby Julia CJ » Tue Jan 26, 2016 8:17 am

Hi Imxuf92,

Please send us the extended Forexconnect log at ycherepanova@gehtsoft.com.
To get the log, please follow the instruction:

1. Copy the attached log settings file "forexconnect.log4plus.properties" to the folder where the forexconnect-based program is installed.

2. In the same folder, create the "log" subfolder.

3. Run the program and try to reproduce the error.

4. Archive the "log" folder (created on step 2). This can be done using command Windows Explorer Send to -> Compressed (zipped) folder or any other method
of your choice.
Send us this archive.
Julia CJ
 

Re: ForexConnect API Rounding Error?

Postby imxuf92 » Tue Jan 26, 2016 10:51 am

I apologize, but I don't see an attachment.

Am I missing something? Am I looking in the wrong place?
imxuf92
 
Posts: 26
Joined: Sat Jan 23, 2016 6:55 pm

Re: ForexConnect API Rounding Error?

Postby Julia CJ » Tue Jan 26, 2016 11:44 pm

Hi Imxuf92,

Thank you for your note.
I have attached the log settings file "forexconnect.log4plus.properties".
Attachments
forexconnect.log4cplus.zip
(619 Bytes) Downloaded 782 times
Julia CJ
 


Return to ForexConnect API

Who is online

Users browsing this forum: No registered users and 3 guests