The price of a stock as quoted by an exchange at a given time. May include additional information such as the latest bid price and bid lots, and/or ask price and ask lots.
Questions tagged [stockquotes]
289 questions
1
vote
1 answer
How to fiind the earliest value in OHLC data if condition satisfies and fetch it's index?
I am dealing with OHLC data of a stock in pandas. I have set 'date' column as index. Other columns are - open, high, low and close.
low = df['2021']['low'][0] shall give first value in low column/first low of year 2021
How do I find the earliest…

Rishabh Sahni
- 43
- 7
1
vote
1 answer
How to convert time column to Unix timestamp?
I would like to convert Datetime column to Epoch / Unix timestamp.
import pandas as pd
import yfinance as yf
import numpy as np
import time
df = yf.download(tickers='^NSEI',period='1d',interval='15m')
df.reset_index(inplace=True)
df.rename(columns…

Yash
- 55
- 2
- 6
1
vote
1 answer
Get stock Low of Day (LOD) price for incomplete daily bar using minute bar data (multiple stocks, multiple sessions in one df) SettingWithCopyWarning
I have a dataframe of minute data for multiple Stocks, each stock has multiple sessions. See sample below
Symbol Time Open High Low Close Volume LOD
2724312 AEHR 2019-09-23 09:31:00 1.42 1.42 1.42 1.42 …

Trippy Dippy
- 99
- 6
1
vote
1 answer
Node JS Requests get returns response code 401 for nse india website
I use this program to get the json data from https://www.nseindia.com/api/option-chain-indices?symbol=NIFTY but since this morning it's not working as it returns . The link loads fine on chrome though. Is there any way to fix this…

Raj Shrishrimal
- 21
- 3
1
vote
0 answers
Indexing by Time Enter Data by Adjusting the Year
I'm studying python where the confusion is to make it by year,
I really ask for help,
I have stock data like this (data1) data from yfinance
data1 = yf.download(ticker,'2000-01-01','2021-01-01')
with the contents of the (data1)
Index(['Open',…

Dwijaya Maleh
- 81
- 8
1
vote
2 answers
Capture Yahoo finance stock data symbols for daily break out, leaders, etc?
I am trying to figure out if there is a way to capture using free Yahoo Finance stock data:
1. Daily 'leaders' with stock symbols, ETFs, options, etc.
2. Any breakout symbols using any classic tecnical analysis indicatoras?
3. Can this be done in…

heavy rocker dude
- 2,271
- 8
- 33
- 47
1
vote
1 answer
Removing Tradingview logo on Ticker Widget
Can someone please help me remove the tradingview marketing logo. I've tired almost everything and somehow the code get's messed up. I'm using this widget from tradingview (https://www.tradingview.com/widget/ticker/) and wanted to know if:
remove…

Ameila
- 13
- 1
- 3
1
vote
2 answers
web-scraping vwap value for list of stock in data frame
scraping particular value (vwap) from nse web site:
here i have a data frame with stock list , i need to fetch the vwap value for every stock from nse website .
below is the reproducibe code .
stock_list =…

Nabi Shaikh
- 787
- 1
- 6
- 26
1
vote
1 answer
Python: Not writing data in oidata.json file, but code gets completed without error
This is my 1st Python program. I am not a programmer. But have knowledge of VBA & html. Just started learning python.
Q: In option chain analysis this code is trying to pull data from NSE site and should write in file "oidata.json". Code is getting…

Rajesh Rai
- 7
- 4
1
vote
1 answer
Alpha Vantage for loop TypeError: string indices must be integers
I have been trying to get the for each loop to go through the data and output the keys and values for specific days like 2020-04-03. But I keep getting the following error: TypeError: string indices must be integers
My code:
import time
from…

Ummaromana Sama
- 75
- 2
- 10
1
vote
2 answers
Is there a way to pull price data in R using an equities ISIN or SEDOL using tq_get? (international equities in particular)
I am attempting to pull price data for a bunch of international equities using tq_get in the tidyquant package but am having issues pulling the data based on the ticker, since the data I have only has ISIN and SEDOL as identification values. When I…

michael
- 21
- 5
1
vote
1 answer
Connecting to Iex API via Pandas Datareader (Python)
I try to connect to "iex" via the Pandas Datareader to retrieve some historical stock data.
After searching around and trying several methods I came up with this code here:
from datetime import datetime
import pandas as…

G.M
- 345
- 3
- 22
1
vote
0 answers
How to establish a connection to receive live stock data
I want to establish connection to receive live stock data from https://www.finanznachrichten.de/aktienkurse/realtime-kurse.htm. By looking at the connected websocket, which is wss://rt.finanznachrichten.de/lightstreamer, I thought it would be easy…

Zhang Tianbao
- 521
- 1
- 6
- 8
1
vote
1 answer
Unable to fetch data through IMPORTXML from NSE website in Google sheets
I am trying to fetch current/ latest price from a dynamic content from National Stock Exchange (India) website in a cell in google sheets. The formula…

Mandar Mehta
- 11
- 1
1
vote
3 answers
Google Finance error: invalid literal
I was trying to work on a person project (stock market predictions) for school, when Google started acting up again...
I realize that Google Finance has been complete garbage this past year, but it still seemed to be working somewhat up until this…

Raksha
- 1,572
- 2
- 28
- 53