A financial asset representing fractional ownership of a corporation, usually traded in units of "shares" on a stock exchange. Questions must be programming related. Use with a language (e.g. [pine-script]), and relevant trading api, if applicable.
Questions tagged [stock]
1513 questions
155
votes
8 answers
What online brokers offer APIs?
So I'm getting really sick of E*TRADE and, being a developer, would love to find an online broker that offers an API. It would be great to be able to write my own trading tools, and maybe even modify existing ones.
Based on my research so far, I've…

Wilco
- 32,754
- 49
- 128
- 160
62
votes
5 answers
What is the difference between isSaleable() and isAvailable()?
I'm working on the display of the stock availability on the (individual) product page of my Magento theme, and there's something I don't completely understand about this.
I see two methods being used in the templates to check whether a product is…

pancake
- 1,923
- 2
- 21
- 42
58
votes
4 answers
Download all stock symbol list of a market
I need to download in some way a list of all stock symbol of specified market.
I've found in this link ho can I do it someway.
It uses following link in order to retrieve stock list that statisfies some…

Jepessen
- 11,744
- 14
- 82
- 149
35
votes
1 answer
Free JSON formatted stock quote API (live or historical)
I have an project where i implement live stock updates of various companies of all countries.
Can any one tell me where we can find "Free API" to fetch these details. I already search a lot on Google only found "Pro API". Need help :)

Ramit Joshi
- 369
- 1
- 3
- 5
34
votes
4 answers
Converting OHLC stock data into a different timeframe with python and pandas
Could someone please point me in the right direction with respect to OHLC data timeframe conversion with Pandas? What I'm trying to do is build a Dataframe with data for higher timeframes, given data with lower timeframe.
For example, given I have…

kgr
- 9,750
- 2
- 38
- 43
24
votes
12 answers
Are there known techniques to generate realistic looking fake stock data?
I recently wrote some Javascript code to generate random fake stock data as I wanted to show a chart that at first glanced looked like real stock data - but all I came up with was pretty noddy. I was just wondering if there are some resources that…

Mark Rhodes
- 10,049
- 4
- 48
- 51
23
votes
2 answers
Updating product stock programmatically in Woocommerce 3
I need so help. I'm trying to update the woocommerce product stock quantity programmatically. We have a vendor feed to us through some JSON. I can read the stock from the feed and can pull the data from the post meta correctly. I'm using the latest…

Dave
- 343
- 1
- 4
- 11
19
votes
6 answers
How get variation's stock quantity woocommerce
I'm developing a theme for wordpress and woocommerce and need to show a variation's stock.
get_stock_quantity(); ?>
I read How to get the stock quantity of an article from woocommerce?, but this code…
SeiyaJapon
- 534
- 1
- 7
- 21
16
votes
6 answers
Retrieve company name with ticker symbol input, yahoo or google API
Just looking for a simple api return, where I can input a ticker symbol and receive the full company name:
ticker('MSFT')
will return
"Microsoft"

paulz
- 382
- 1
- 3
- 10
10
votes
7 answers
Magento API: Assigning preexisting simple products to configurable products
I've got a client database with a large range of stock items, which are being uploaded to Magento as simple products.
Now I need to group them up and assign them to configurable products with their size and colour being their configurable…

keith
- 3,105
- 2
- 29
- 34
10
votes
2 answers
How to add custom stock status to products in WooCommerce 4+
I am using the following code to add new stock statuses in WooCommerce 4+
The new statuses are:
Preorder
Contact us
function add_custom_stock_type() {
?>