Questions tagged [stocks]

313 questions
1
vote
1 answer

Getting stock symbol from company name

I have a company name and i want to get the stock symbol of that company and all the information related to it. I have tried using yahoo call back Stock ticker symbol lookup API but for some reason it returns a http 400 bad request. Could someone…
user1092042
  • 1,297
  • 5
  • 24
  • 44
1
vote
2 answers

Platform that runs scripts monitoring stock market activity? Possibly executes trades?

Are there any software platforms out there that can be used to run scripts that monitor stock market activity? I would like to write a script to send myself alerts when certain market conditions occur. Ideally it would also have the ability to…
Chris Dutrow
  • 48,402
  • 65
  • 188
  • 258
1
vote
1 answer

Suggested schema to store Stock Prices

I've exhausted my google-fu and cannot get anything like an answer, so I thought I'd ask here. [background] I run a forum centered around an American Football based video game (BloodBowl). Each member has their own team, and we run leagues and…
Chelmet
  • 65
  • 1
  • 2
  • 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

Is there a free or relatively cheap stock market holidays api?

We're developing a trading app where one can enter previous trades including date and time of the trade. For validation purposes I need to know if a stock exchange was open on the day the user specifies. Does anyone know of an API or similar where I…
rassom
  • 2,896
  • 5
  • 34
  • 45
1
vote
2 answers

google finance stocks day range

How can I get the day range of any stock symbol? http://finance.google.com/finance/info?client=ig&q=NASDAQ:MSFT gives me a bunch of info but only want the high and low of the day. I looked into the google finance API and I don't think it gives me…
milan
  • 2,179
  • 9
  • 24
  • 34
1
vote
3 answers

Parsing SEC Edgar XML file using Ruby into Nokogiri

I'm having problems parsing the SEC Edgar files Here is an example of this file. The end result is I want the stuff between and into a format I can access. Here is my code so far that doesn't work: scud =…
hadees
  • 1,754
  • 2
  • 25
  • 36
1
vote
2 answers

Running total per category for each day in pandas dataframe

I have a pandas dataframe with stock transactions which do not happen every day and not for each stock: Goal is to get the (daily) weights of each stock for each day. Starting table and expected result This means - creating a full calendar of…
1
vote
1 answer

How to add conditions with moving day averages in pandas?

Homework Question need help to solve: strategy: buy whenever the price goes above the 50-day moving average, and then sell after 3 trading sessions. How much profit (in %) would we make on average? On trading day x, we say that the price "goes…
none
  • 33
  • 1
  • 7
1
vote
1 answer

Compute daily returns from cumulative returns

I have a dataframe with cumulative stock returns from 1 to 5 days: 1dReturn 2dReturn 3dReturn 4dReturn 5dReturn Ticker LUNA -3.077 -3.077 -6.923 -6.915 -6.615 YTEN …
Niccola Tartaglia
  • 1,537
  • 2
  • 26
  • 40
1
vote
1 answer

Python webscraping - realtime data

I am trying scrape the live data at the to of this page: https://www.wallstreet-online.de/devisen/euro-us-dollar-eur-usd-kurs/realtime My current method: import time import re import bs4 from bs4 import BeautifulSoup as soup import requests while…
1
vote
1 answer

plotting candlesticks with ticks of 1 minute

I'm trying to plot candlestick_ohlc with ticks of 1 minute and the graph looks like this: plot result I looked on the site and i tried to implement all the answers about questions like this, and yet, the result was the same grpah. I think the the…
1
vote
0 answers

create ts object for stock hourly data in r

I am new to R and have been trying to create a ts object for the stock market hourly data on which I can apply time series analysis. an example of my data looks like below (I'll take hourly volume data for a stock in this case): …
stucash
  • 1,078
  • 1
  • 12
  • 23
1
vote
2 answers

Create 5 min bars out of 1 min bars in R

I have these data Open High Low Close 1 6709.0 6709.5 6703.5 6705.0 2 6705.0 6710.5 6705.0 6710.0 3 6710.5 6713.5 6710.5 6713.5 4 6713.5 6713.5 6711.5 6712.0 5 6712.5 6715.0 6712.5 6714.0 6 6714.0 6716.0 6713.5 6716.0 which are OHLC prices…
rrr123
  • 13
  • 2
1
vote
1 answer

Reading a JSON of Stock Market Data in R

I am learning R and trying to import some stock market data. The sample data is {"2017-12-07 13:07:00": {"1. open": "169.7800", "2. high": "169.9100", "3. low": "169.7800", "4. close": "169.8500", "5. volume": "20659"}, "2017-12-07 13:06:00": {"1.…