Questions tagged [stock]

1109 questions
4
votes
4 answers

Using python and urllib to get data from Yahoo FInance

I was using urllib in python to get stock prices from yahoo finance. Here is my code so far: import urllib import re name = raw_input(">") htmlfile = urllib.urlopen("http://finance.yahoo.com/q?s=%s" % name) htmltext = htmlfile.read() # The…
ng150716
  • 1,893
  • 5
  • 32
  • 53
4
votes
1 answer

How to play HLS video in Android?

Here is stream video from justin.com or twitch.tv this CHANNEL Go to here and choose any live stream, get from them url and add html://.../hls in screen appears Guys told me that: Android is weird in that it will not work on Android Chrome but…
NickUnuchek
  • 8,369
  • 9
  • 74
  • 111
4
votes
5 answers

Get notified on stock unavailability

I am trying to create a "Notify me" feature if the stock is unavailable. On search on admin panel, I could find only that a user should sign up / log in to get notified about the stock availability. But I just want to let the user (a guest) enter…
Mr_Green
  • 36,985
  • 43
  • 143
  • 241
4
votes
1 answer

How to retrieve BSE/NSE listed stock's price from finance.yahoo.com

I'm developing an application for stocks displaying through finance.yahoo.com in Java using Spring framework. But it only provides share values from NYSE, Nasdaq-NM, etc. How can I retrieve the values of share by specify NSE or BSE?
Master Mind
  • 2,359
  • 2
  • 25
  • 46
4
votes
4 answers

YQL getting stock quotes country wise

I have been searching for this for last few days. I have achieved fetching the basic things through YQL, like their stocks, prices and all. Like this : Select Name,Symbol,LastTradePriceOnly,LastTradeDate, LastTradeTime, Change, …
Akash Saikia
  • 412
  • 6
  • 19
3
votes
5 answers

Are there any reuseable CSS stylesheets that provide some commonly used functionality?

Examples might include: buttons (class="button" or similar) rounded boxes with headings (class="content-box" or similar) nice looking html tables (class="nice-table" or similar) customised html form fields [example class names just to give an…
diolemo
  • 2,481
  • 2
  • 18
  • 27
3
votes
2 answers

Disable add to cart button based on WooCommerce product custom stock status

Currently in woocommerce, add to cart button disabled, if the stock status is out of stock. I add new stock status with the label Discontinued product by using woocommerce_product_stock_status_options, now I am looking for a way to treat this…
CoachLab
  • 199
  • 9
3
votes
3 answers

Creating a dataframe on Date from two incomplete, not same size dataframes

I am trying to put together a big dataframe wih dates, average sentiment scores (from Twitter), and closing stock price. Here is what I have so far. #imports import pandas as pd import matplotlib import matplotlib.pyplot as plt import numpy as…
Cara99
  • 43
  • 3
3
votes
2 answers

Slow performance of nested loop in R

I have a xts series consisting of 250 observations and 584 columns. I am running a nested for loop on this series. This nested loops takes too much time. I have tried to create a reproducible example. On actual data set nested loop is taking too…
sim235
  • 199
  • 9
3
votes
2 answers

Statistical Stock Scanner in Mathematica

my goal is to write an algorithm in Mathematica that will search for stocks whose current price is trading below or above 2 Standard Deviations of the Mean. I literally started to learn the program yesterday but I have been scouring the internet…
Brandon
  • 31
  • 1
  • 2
3
votes
1 answer

GNUCASH: Can not import stock price from csv to gnucash stock account

I am trying to import some stock trade transactions into GNUCASH stock account. I used a template I export from GNUCASH. Everything loaded correctly except the price. It seems that the system is calculating the shares incorrectly. …
XZXZ
  • 31
  • 2
3
votes
1 answer

Alpha Vantage API not working for Brazilian stocks

I am trying to fetch Brazilian stock prices with Alpha Vantage API. For this example, I'll talk about PETR4. I have used Alpha Vantage Search Endpoint. It returns the symbol of the currency: { "bestMatches": [ { "1.…
pedrovgp
  • 545
  • 5
  • 20
3
votes
1 answer

Add backorders stock status to Woocommerce variable product dropdown

I would like to show the stock status of variable products in the dropdown menu, including 'on backorder' as most products on my site are available on backorder rather than being 'out of stock'. I have tried the answer from How to add variation…
Nat418
  • 33
  • 5
3
votes
4 answers

Getting Stock Historical Data from API for a python project

I am making a stock analysis program, but for that, I need the NYSE stock historical data API. I have searched everywhere, but could not find helpful solutions (i.e. Yahoo/Google Finance APIs are down). I tried the Alpha Vantage API, but it did not…
ShadyAF
  • 67
  • 1
  • 1
  • 8
3
votes
1 answer

ggplot2 adding dynamic arrow annotations pointing at specific data points that remain proportional to the scale of the overall plot

I would like to create a template that would allow me to create a line graph of stock prices with the ability to add arrows pointing at specific dates. The annotation function on ggplot2 does not allow for resizing with the scale of the plot. Is…
47West
  • 35
  • 7