|
Attention! Read the forum rules carefully before posting a topic.
Try to find an answer in Wiki before asking a question. Submit programming questions in this forum only. Off topics are strictly forbidden.
Any topics which do not satisfy these rules will be deleted.
can I get a single Quote without subscribing? |
Nebilar
|
Post subject: can I get a single Quote without subscribing? |
Post rating: 0
|
Posted: Fri 01 Mar, 2019, 13:03
|
|
User rating: 0
Joined: Mon 29 May, 2017, 17:19 Posts: 21 Location: Germany,
|
Hi,
sometimes I only need a quote and not a steady stream of ticks from a currency. I tried to get a quote using IHistory.getLastTick(), but I am getting an error that the instrument is not subscribed. Is there any other way I can get the current quote of an instrument without subscribing? Or do I always need to subscribe, get the quote, and then unsubscribe?
Thanks!
|
|
|
|
|
Nebilar
|
Post subject: Re: can I get a single Quote without subscribing? |
Post rating: 0
|
Posted: Mon 18 Mar, 2019, 13:00
|
|
User rating: 0
Joined: Mon 29 May, 2017, 17:19 Posts: 21 Location: Germany,
|
|
|
|
|
API Support
|
Post subject: Re: can I get a single Quote without subscribing? |
Post rating: 0
|
Posted: Tue 09 Apr, 2019, 17:23
|
|
User rating: ∞
Joined: Fri 31 Aug, 2007, 09:17 Posts: 6139
|
Hello,
To work with any ITimedData you need to have a subscription for corresponding instrument.
|
|
|
|
|
yousseff
|
Post subject: Re: can I get a single Quote without subscribing? |
Post rating: 0
|
Posted: Wed 10 Apr, 2019, 12:33
|
|
User rating: 0
Joined: Fri 26 Sep, 2014, 15:41 Posts: 6 Location: MoroccoMorocco
|
hello,
Subscribing to many instruments makes the strategy very slow. Especially when we only need all the ticks.
Isn't there a way to a shortcut this problem ? subscribing and unsubscribing is a way but it is time consuming as well ?
Can we just subscribe to get quotes of 5 MINs for example instead of tick quotes ?
Regards, Youssef
|
|
|
|
|
yousseff
|
Post subject: Re: can I get a single Quote without subscribing? |
Post rating: 0
|
Posted: Wed 10 Apr, 2019, 12:35
|
|
User rating: 0
Joined: Fri 26 Sep, 2014, 15:41 Posts: 6 Location: MoroccoMorocco
|
Especially when we don'tneed all the ticks. ( Especially when we only need all the ticks.)
|
|
|
|
|
|
Pages: [
1
]
|
|
|
|
|