Is there a rule for stocktwits symbols for stocks that are traded on non-US stock exchanges? For example British Telecom is traded on the London Stock Exchange and it's symbol is LON: BT.A.
How do I format the stocktwits symbol for this stock? Is it $LON:BT.A or $LONBTA?
StockTwits does not currently support the London Stock Exchange but might in the future. Only forex, US exchanges and the Toronto Stock Exchange are currently supported
Related
I am working on a chatbot that allows users to compare their spending by 2 periods (e.g. spending in 1/1/19-2/2/19 vs spending in 1/1/20-2/2/20). We hope to detect the dates below from customer input:
Transaction date from (DDMMYY)
Transaction date to (DDMMYY)
Comparison date from (DDMMYY)
comparison date to (DDMMYY)
Some customers may say "I want to compare my spending of Jan 2019 with Feb 2020".
My questions are
if customer only types Jan 2019 (instead of giving me the date, month and year - 01/01/19), how can we generate the date 01/01/19 from input "Jan 2019"
how can we tell "transaction date from" = 01/01/19 (also for "Transaction date to", "Comparison date from" and "comparison date to"). Should I set 4 entities?
Note: we are not using a language without annotation feature.
Heres a sample DF:
Date Party name Symbol Buy/Sell indicator # of shares trade price
2011-01-03 American Funds EuPc;A AAPL BUY 2400 332.87
2011-02-14 American Funds CWGI;A SLB BUY 6700 94.08
2011-01-06 Tudor Investment Corp ALL BUY 11800 31.92
2011-01-20 American Funds Inc;A AMZN SELL 3600 180.14
And here is what I wish to achieve:
Date Party name Symbol Buy/Sell # of shares trade price trading volume
2011-04-21 Federated Prime Obl;Inst MMM BUY 2600 96.17 250042
2011-01-05 Fortress Investment Group CMCSA SELL 29700 21.96 644193
2011-02-28 Dodge & Cox Intl Stock DELL SELL 57400 15.67 899458
2011-05-02 American Funds Inc;A S BUY 137300 5.19 712587
The new trading volume column is the # of shares column * trade price column. Anyone know how to achieve this automatically since there are a lot more lines? What I would like to do after is take the trading volume values and show them as an output in descending order. The exact instruction is
The biggest dollar trading volume counter parties, top twenty list.
I have this so far:
val dataframe = spark.read.cvs("c:\data")
val newdf = dataframe.select("# of shares","trade price")
Any help would be much appreciated. Thank you.
Here you go:
import org.apache.spark.sql.functions._
val newdf = dataframe.withColumn("trading volume",col("# of shares")*col("trade price"))
.select("# of shares","trade price","trading volume")
I have a table of vehicles at service locations showing columns such as DAY, LICENSE, BOROUGH etc. I'd like to add a cross table showing the number of vehicles that have been serviced for 3 weeks or more. I'm not sure what custom expression to use.
Sample data:
Sample data
I hope your sample data isn't containing a bunch of legitmate license plates. not the most compromising data but I would recommend blacking out or replacing them with test data if it isn't already.
anyway. you're looking for the DateDiff() function. for example:
If(DateDiff('day', Date(DateTimeNow()), [Date]) >= 21, "21 days or more", "less than 21 days")
I want to implement recurring payment in PayPal with variable amount. I successfully implement recurring payment with constant amount. But i don't know how to implement the recurring payment with variable amount,
Very typical scenario would be Telephone Bill amount deduction by the service providers.
If my September month bill contains Rental : 20 Euros, usage : 15 Euros, then the deduction would be 35 euros
Next if my October month bill contains Rental : 20 Euros , usage : 25 Euros, then the deduction would be 45 Euros.
Next if my November month bill contains Rental : 20 Euros , usage : 50 Euros, then the deduction would be 70 Euros.
Considering the above scenarios, please advise how to handle it from both the sides..
Thanks in advance..
Riyaz
You might have to simply automate the PayPal payment from your end,
not automatically from PayPal's end. You can't have a subscription
that varies in price, so you'll have to do a single charge every
month, with the amount you specify. (As far as I know)
That also means that you'll have to manage the subscriptions on your
end (pretty easily doable), and there will be no way for the user to
un-subscribe from the PayPal side.
I can't seem to locate documentation for the following REST api (similar to):
http://finance.yahoo.com/webservice/v1/symbols/allcurrencies/quote?format=json
In my particular case I want to fetch historical stock quote data (daily stock quote for last 7 years so for a particular stock).
You can query for historical stocks by using yahoo.finance.historicaldata, which is an undocumented data table maintained by the community:
Try this on YQL console:
select * from yahoo.finance.historicaldata where symbol = "GOOG" and startDate = "2012-06-06" and endDate = "2013-01-01"
Be warned that since this is unofficial and not maintained by Yahoo, this query is somewhat unreliable...