alienbrett / PyAlly

Ally Invest API Module for Python3
https://alienbrett.github.io/PyAlly/
MIT License
57 stars 28 forks source link

Options code sample is incorrect #37

Closed xamerian closed 4 years ago

xamerian commented 4 years ago

The query value is incorrect in the code sample (https://github.com/alienbrett/PyAlly/wiki/Option-Contracts)

Incorrect: query='xdate-eq:20201231',

It should be an array: query=["xdate-eq:20201231","strikeprice-eq:180"]

The is the code sample: available_options = a.search_options( symbol='SPY', query='xdate-eq:20201231', # Mature on 2020-12-31 fields=['bid','ask'] # 'bid,ask' also works. Function properly formats a list or a string )

JTraversa commented 4 years ago

Corrected the wiki

https://github.com/alienbrett/PyAlly/wiki/Option-Contracts/_compare/8f1c0254aed591965624385d1880adb256140e4f