Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
3 registered members (dBc, clonman, TipmyPip), 18,816 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 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: 28,024
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,024
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