# This is calling for python version at least 2.7

**URL:** <https://forum.inductiveautomation.com/t/this-is-calling-for-python-version-at-least-2-7/56069>\
**Category:** Ignition\
**Created:** [February 12, 2022, 6:11pm UTC](https://forum.inductiveautomation.com/t/this-is-calling-for-python-version-at-least-2-7/56069 "2022-02-12T18:11:54Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![dcamp1](https://avatars.discourse-cdn.com/v4/letter/d/dc4da7/32.png) [@dcamp1](https://forum.inductiveautomation.com/u/dcamp1)\
**Post date:** [February 12, 2022, 6:11pm UTC](https://forum.inductiveautomation.com/t/this-is-calling-for-python-version-at-least-2-7/56069/1 "2022-02-12T18:11:54Z")

</div>

would this api run in Ignition since it is actually using jython 2.5?

> **[yahoofinancials](https://pypi.org/project/yahoofinancials/)**
>
> A powerful financial data module used for pulling both fundamental and technical data from Yahoo Finance

---

<div class="post-metadata">

**Author:** ![Matrix\_Engineering](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/matrix_engineering/32/19781_2.png) [@Matrix\_Engineering](https://forum.inductiveautomation.com/u/Matrix_Engineering)\
**Post date:** [February 12, 2022, 7:00pm UTC](https://forum.inductiveautomation.com/t/this-is-calling-for-python-version-at-least-2-7/56069/2 "2022-02-12T19:00:55Z")

</div>

Not 100% sure but you'd have more chance in Ignition 81 as it's Jython 2.7 I think.

Also I downloaded from your link and one of the _requires_ is Beautiful Soup so see here:

> [@Does anyone know of a Beautiful Soup J-python equivalent?](https://forum.inductiveautomation.com/t/does-anyone-know-of-a-beautiful-soup-j-python-equivalent/35719):
>
> Or at least something similar?

---

<div class="post-metadata">

**Author:** ![dcamp1](https://avatars.discourse-cdn.com/v4/letter/d/dc4da7/32.png) [@dcamp1](https://forum.inductiveautomation.com/u/dcamp1)\
**Post date:** [February 12, 2022, 9:37pm UTC](https://forum.inductiveautomation.com/t/this-is-calling-for-python-version-at-least-2-7/56069/3 "2022-02-12T21:37:06Z")

</div>

Would anyone have any ideas as to how I might be able to get “Stock Market Data” into Ignition?  
I’m on Version 7.9.10 so I think this is jython 2.5 version.

---

<div class="post-metadata">

**Author:** ![zacht](https://avatars.discourse-cdn.com/v4/letter/z/ea5d25/32.png) [@zacht](https://forum.inductiveautomation.com/u/zacht)\
**Post date:** [February 14, 2022, 3:32pm UTC](https://forum.inductiveautomation.com/t/this-is-calling-for-python-version-at-least-2-7/56069/4 "2022-02-14T15:32:37Z")

</div>

REST API?

Possible candidates:

> **[12 Best Stock Market APIs to Build Financial Products](https://geekflare.com/best-stock-market-api/)**
>
> The stock market industry has witnessed huge technological adoption in recent years. This change in the face of the stock market industry is growing so

---

<div class="post-metadata">

**Author:** ![bkarabinchak.psi](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bkarabinchak.psi/32/83567_2.png) [@bkarabinchak.psi](https://forum.inductiveautomation.com/u/bkarabinchak.psi)\
**Post date:** [February 14, 2022, 3:38pm UTC](https://forum.inductiveautomation.com/t/this-is-calling-for-python-version-at-least-2-7/56069/5 "2022-02-14T15:38:39Z")

</div>

API per @zacht is your best best, easiest option just hit the endpoint with a GET request when needed.

Second, more involved and messier solution, is to find some website that has the price and scrape it with some java libraries.

Go with the API if possible. That is definitely the “right” way to do this.

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [February 14, 2022, 4:48pm UTC](https://forum.inductiveautomation.com/t/this-is-calling-for-python-version-at-least-2-7/56069/6 "2022-02-14T16:48:15Z")

</div>

And for consuming a REST api, use [`system.net.httpClient`](https://docs.inductiveautomation.com/display/DOC81/system.net.httpClient).

---

<div class="post-metadata">

**Author:** ![zacht](https://avatars.discourse-cdn.com/v4/letter/z/ea5d25/32.png) [@zacht](https://forum.inductiveautomation.com/u/zacht)\
**Post date:** [February 14, 2022, 7:00pm UTC](https://forum.inductiveautomation.com/t/this-is-calling-for-python-version-at-least-2-7/56069/7 "2022-02-14T19:00:31Z")

</div>

> [@paul-griffith](#):
>
> for consuming a REST api, use [`system.net.httpClient`](https://docs.inductiveautomation.com/display/DOC81/system.net.httpClient).

Or, for specific use-cases, http bindings.  
[https://docs.inductiveautomation.com/display/DOC81/HTTP+Bindings+in+Perspective](https://docs.inductiveautomation.com/display/DOC81/HTTP+Bindings+in+Perspective)

---

<div class="post-metadata">

**Author:** ![bkarabinchak.psi](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bkarabinchak.psi/32/83567_2.png) [@bkarabinchak.psi](https://forum.inductiveautomation.com/u/bkarabinchak.psi)\
**Post date:** [February 14, 2022, 7:07pm UTC](https://forum.inductiveautomation.com/t/this-is-calling-for-python-version-at-least-2-7/56069/8 "2022-02-14T19:07:13Z")

</div>

One thing I’d note is that many API’s - especially one you are getting for free - will limit how many requests you get in a day. So if you have it in a http binding one client who keeps refreshing the page might mess take up a disproportionate amount of hits to that API. IMO you’re better off on a gateway timer script, hitting the API every X minutes so that you hit it less than your allotted time per day and putting that data into tag/dataset where then your perspective client or vision client will read from it.

---

<div class="post-metadata">

**Author:** ![Matrix\_Engineering](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/matrix_engineering/32/19781_2.png) [@Matrix\_Engineering](https://forum.inductiveautomation.com/u/Matrix_Engineering)\
**Post date:** [February 14, 2022, 8:12pm UTC](https://forum.inductiveautomation.com/t/this-is-calling-for-python-version-at-least-2-7/56069/9 "2022-02-14T20:12:39Z")

</div>

The OP is on 7.9.10…

---

<div class="post-metadata">

**Author:** ![zacht](https://avatars.discourse-cdn.com/v4/letter/z/ea5d25/32.png) [@zacht](https://forum.inductiveautomation.com/u/zacht)\
**Post date:** [February 14, 2022, 8:26pm UTC](https://forum.inductiveautomation.com/t/this-is-calling-for-python-version-at-least-2-7/56069/10 "2022-02-14T20:26:16Z")

</div>

> [@Matrix\_Engineering](#):
>
> OP is on 7.9.10

Good point. In that case, I would not recommend http bindings. 😁
