Kamis, 19 Juli 2018

[smf_addin] Digest Number 4362

7 Messages

Digest #4362

Messages

Wed Jul 18, 2018 6:20 am (PDT) . Posted by:

wdcarswell2002

In a quick search I found the following discussion related to Barchart. I have no Idea if this is useful in the current situation but I thought I would share this. Excuse me if this is irrelevant to the current issue.
(barchart) ms@mm:~/dev/barchart$ python quotes.py
python quotes.py
Barchart OnDemand Client: https://ondemand.websol.barchart.com/
Traceback (most recent call last):
File "quotes.py", line 9, in <module>
quotes = od.quote('AAPL,MSFT')['results']
File "/Users/ms/dev/barchart/lib/python2.7/site-packages/ondemand/ondemand_client.py", line 69, in quote
return self._do_call(self.endpoint + 'getQuote.json', params)
File "/Users/ms/dev/barchart/lib/python2.7/site-packages/ondemand/ondemand_client.py", line 55, in _do_call
raise OnDemandError('Request Failed: %s. Text: %s' % (resp.status_code, resp.text))
ondemand.ondemand_client.OnDemandError: Request Failed: 401. Text: API key is missing or not valid. If you are using a free API key, please make your requests to <a href="https://marketdata.websol.barchart.com">https://marketdata.websol.barchart.com</a>






https://github.com/mvberg

Member mvberg https://github.com/mvberg commented on Jan 17 https://github.com/barchart/barchart-ondemand-client-python/issues/3#issuecomment-358473954
@Schwarzschild https://github.com/Schwarzschild are you using a free API or do you have a paid subscription?
If so, you have to change the end_point as stated in the error message
If you are using a free API key, please make your requests to https://marketdata.websol.barchart.com https://marketdata.websol.barchart.com/
So your constructor would look like:
od = ondemand.OnDemandClient(api_key=key, end_point=https://marketdata.websol.barchart.com)





Wed Jul 18, 2018 7:21 am (PDT) . Posted by:

bob_15861586

The following use to work for me to get the Delta of an Option:
=smfGetOptionQuotes("RS 9/21 2018 $100 call","5",,"B")
However, it no longer works. Is there currently a way to get the delta of an option?


Thanks,
Bob

Wed Jul 18, 2018 2:18 pm (PDT) . Posted by:

"Randy Harmelink" rharmelink

I'm not aware of a source of delta now that Barchart is no longer available.

Hmm. Looks like NASDAQ has them, but it would be one web page per option
symbol. And the value is very different from what Barchart shows:

=smfGetTagContent("
https://www.nasdaq.com/symbol/rs/option-chain/180921C00100000-rs-call
","span",1,">Delta",,,,1)

On Wed, Jul 18, 2018 at 7:20 AM, bob_15861586@
​...
wrote:

>
> The following use to work for me to get the Delta of an Option:
>
> =smfGetOptionQuotes("RS 9/21 2018 $100 call","5",,"B")
>
> However, it no longer works. Is there currently a way to get the delta of
> an option?
>
>
>

Wed Jul 18, 2018 4:09 pm (PDT) . Posted by:

bob_15861586

Randy,

Thanks for the response. I tired this command:
=smfGetTagContent("https://www.nasdaq.com/symbol/rs/option-chain/180921C00100000-rs-call","span",1,">Delta",,,,1)


and it returned FALSE. What do you recommend?


Bob

Wed Jul 18, 2018 4:26 pm (PDT) . Posted by:

"Randy Harmelink" rharmelink

I suspect it didn't copy correctly, and ended up with some comparison of
something to something. That is, "...=...". I've don't that before.

It looks like a hidden character is inserted within your message between
the "=" and the function name, so maybe that is causing some kind of issue.

Try copying just everything after the "=" as text and see what you get.
Mine gets pasted with an "?" sign in front. When I change that to "=", it
works fine.

On Wed, Jul 18, 2018 at 4:09 PM, bob_15861586@
​...
wrote:

>
> Thanks for the response. I tired this command:
> =
> ​​
> smfGetTagContent("https://www.nasdaq.com/symbol/rs/
> option-chain/180921C00100000-rs-call","span";,1,">Delta",,,,1)
>
> and it returned FALSE. What do you recommend?
>
>
>

Wed Jul 18, 2018 5:06 pm (PDT) . Posted by:

"Randy Randall" randyr_cds

Looks like https://www.nasdaq.com/symbol/rs/option-chain/greeks?dateindex=-1
has
the greeks for the entire chain.

Randy

On Wed, Jul 18, 2018 at 5:18 PM Randy Harmelink rharmelink@gmail.com
[smf_addin] <smf_addin@yahoogroups.com> wrote:

>
>
> I'm not aware of a source of delta now that Barchart is no longer
> available.
>
> Hmm. Looks like NASDAQ has them, but it would be one web page per option
> symbol. And the value is very different from what Barchart shows:
>
> =smfGetTagContent("
> https://www.nasdaq.com/symbol/rs/option-chain/180921C00100000-rs-call
> ","span",1,">Delta",,,,1)
>
> On Wed, Jul 18, 2018 at 7:20 AM, bob_15861586@
> ​...
> wrote:
>
>>
>> The following use to work for me to get the Delta of an Option:
>>
>> =smfGetOptionQuotes("RS 9/21 2018 $100 call","5",,"B")
>>
>> However, it no longer works. Is there currently a way to get the delta of
>> an option?
>>
>>
>>
>

Wed Jul 18, 2018 5:16 pm (PDT) . Posted by:

"Randy Harmelink" rharmelink

Yes, but extremely awkward to use because it's in multiple pages...

On Wed, Jul 18, 2018 at 5:06 PM, Randy Randall positive.theta@
​...
wrote:

>
> Looks like https://www.nasdaq.com/symbol/rs/option-chain/greeks?
> dateindex=-1 has the greeks for the entire chain.
>
>
>
For the Add-in, Documentation, Templates, Tips and FAQs, visit http://ogres-crypt.com/SMF

Tidak ada komentar:

Posting Komentar