Gamestudio Links
Zorro Links
Newest Posts
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
Data from CSV not parsed correctly
by EternallyCurious. 04/20/24 21:39
M1 Oversampling
by 11honza11. 04/20/24 20:57
Scripts not found
by juergen_wue. 04/20/24 18:51
zorro 64bit command line support
by 7th_zorro. 04/20/24 10:06
StartWeek not working as it should
by jcl. 04/20/24 08:38
folder management functions
by VoroneTZ. 04/17/24 06:52
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 533 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EternallyCurious, howardR, 11honza11, ccorrea, sakolin
19047 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Option contractPrint() function not printing ASK &BID #486161
06/14/22 20:33
06/14/22 20:33
Joined: Sep 2021
Posts: 12
A
avy Offline OP
Newbie
avy  Offline OP
Newbie
A

Joined: Sep 2021
Posts: 12
Hi,
I am trying to print live option chain using contractPrint() function to CSV file but for some reason it is not pulling Underlying, Ask, Bid & Vol columns or values . Not sure if i am doing something wrong here or missing anything . The script is simple

asset("QQQ");
Multiplier = 100;
contractUpdate(Asset,0,CALL|PUT);
contractPrint();

I am using IB for this on my live account. The idea is to save live option chain in CSV file with price and other information. Please your help on this be much appreciated.

Regards
Avy

Last edited by avy; 06/14/22 20:33.
Re: Option contractPrint() function not printing ASK &BID [Re: avy] #486166
06/15/22 08:58
06/15/22 08:58
Joined: Jul 2000
Posts: 27,982
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,982
Frankfurt
IB option chains have no ask and bid. You need contractPrice() for gettng a contract price.

Re: Option contractPrint() function not printing ASK &BID [Re: jcl] #486196
06/18/22 10:58
06/18/22 10:58
Joined: Sep 2021
Posts: 12
A
avy Offline OP
Newbie
avy  Offline OP
Newbie
A

Joined: Sep 2021
Posts: 12
Thank you JCL for your help!


Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1