Gamestudio Links
Zorro Links
Newest Posts
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 07/05/22 15:02
C++ scripts
by jcl. 07/04/22 13:02
History & HistoryFolder
by DdlV. 07/01/22 14:57
car.c how to add a trailer or wagon?
by Ice2642. 07/01/22 13:35
AUM Magazine
Latest Screens
DEAD TASTE
Tactics of World War I
Hecknex World
Scheherazade's Journey
Who's Online Now
5 registered members (KahunaTrading, AndrewAMD, Grant, MegaTanker, foox), 378 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
foox, Jiseb, faustotex, Anas, PeroPero
18793 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: 5
A
avy Offline OP
Newbie
avy  Offline OP
Newbie
A

Joined: Sep 2021
Posts: 5
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,834
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,834
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: 5
A
avy Offline OP
Newbie
avy  Offline OP
Newbie
A

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


Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1