Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (AndrewAMD, dr_panther, degenerate_762, Ayumi), 790 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 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,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
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