iPhone Native Stocks Application - iphone

Anyone know how apple uses yahoo finance api to get the historical data for stocks at different times of the dat. Also, how to get the quote price for a given stock at different times of the day for today instead of just the current quote?
It seems that the yahoo finance api can be used to get the current price, and the iChart.yahoo.. can be used to get closing prices for stocks each day. Thanks!
Josh

Try the Mergent Historical Securities Data API - http://www.mergent.com/servius

Related

How to add currency converter to my flutter e-commerce app?

I'm creating an app where users can upload products in their country's currency and the product will be visible for other users in their own country's currency.
For example, a user from France should be able to set the price of the product in Euros and other users viewing the product, say one of them is viewing the product from Australia then the price should be converted to Australian dollars.
How do I achieve this with flutter?
If I have the user's country details already, is there any converter plugin or API that does this?
The plugin or API should obviously update with rates. I'm using Firebase for the database to store the uploaded product and details. Or maybe I can save the product price in multiple currencies with their current rates at the time of upload and the price wont change with the change in rates after upload.
use the api to get the updated conversion rates. You can use this api
You can use the forex package to access exchange rates easily.
From their examples section:
quotes = await Forex.fx(
quoteProvider: QuoteProvider.ecb,
base: 'JPY',
quotes: <String>['EUR', 'USD']);
print('Number of quotes retrieved: ${quotes.keys.length}.');
print('Exchange rate JPYEUR: ${quotes['JPYEUR']}.');
print('Exchange rate JPYUSD: ${quotes['JPYUSD']}.');
Please note that getting the exchange rates of currency is the easy part in the mess that banking is... be sure to think about all the edge cases in your application if you want to do more than just display a price tag.

Deeplinking to ubereats app ratings page

I would like to set a link in a message to send to my uberEats customers that would take them to their apps last order where they could rate and tip the customer. Can this be done?
There is not currently an uberEATS API or public deeplink schema, so at this point this is not available. I believe deeplinks like you describe is something that the EATS team is interested in doing, however, so stay tuned in the second half of this year.

Collecting Data from Facebook Group

I'm not one of the Facebook Developer, but I need some data for my thesis, regarding one group in Facebook which I'm currently observing.
The problem is, I must collect the data within the last 6 months of:
how many members have joined in the last 6 months, if possible, can be split by monthly.
how many postings in the group in the last 6 months, also.. if possible split by monthly
how many active users within the last 6 months.
Can somebody give me some hints of how to collect those information?
You're going to have a hard time doing this. Groups aren't very API friendly, and they don't have their own insights information.
You can try browsing the group's feed using the Graph API Explorer using the /GROUP_NAME_OR_ID/feed edge, and adding since and until filters to look at monthly data.
However, you won't see all the posts because of Facebook privacy filtering. To get the most reliable data, you'll need to manually count the entries of interest from within the Facebook webapp.

Separating data from different months in Google Analytics

I'm using the Google Analytics API to get info from my website and I want to collect info from more than one month at the same time, but the GA functions give me data from only the last month I ask for.
Here's an example:
I request info for dates from 1st of February of 2012 to today, but when I get the information, the API gives me data from 1st to 22th of March and then from 23th to 29th of February.
Is there any solution for sepatating this data and get the whole information?
Thank you!
You can add "start-date=" & "end-date" as query string to the request
such as start-date=2012-07-01&end-date=2012-07-25
You can try this tool provided by google: http://ga-dev-tools.appspot.com/explorer/
Just log in with your credentials and you can build your API queries in a simple GUI. Maybe you are just missing something?

Facebook Credits and Foreign currency

I am developing an application that uses FB Credits as a currency, however, my clients are going to be paying in their local currency (ILS, israeli sheqel).
I know the rate for 1 credit is 10 cents, however, the price in ILS seems to be changing according to changes in the exchange-rates of USD-ILS.
Is there a way to query Facebook Server to know the prices users are going to be charged in their local money? Like a way to query the pricelist. Many new users don't understand the concept of credits and i'd like to show them what they're about to pay in local money.
The Facebook Credits API doesn't have exchange rate information available. You could request this feature on their developer group. You're best bet would be to pull down an exchange rate feed (there are tons available if you search) and display that with a warning that it is just an estimated rate and that it is dependent on the actual exchange rate Facebook uses.
xe.com is a great feed , you can also pull data from yahoo or google finance
As stated by OffBySome, Facebook do not have exchange rate information available. Thinking about this, I can see why they don't have this as they do not want you to display the local currency price for items. Although at the moment Facebook Credits are relatively new, and there is a lot of confusion for end users, eventually when it becomes widespread there won't be these issues.
I would suggest for now (as that is what I have done - here one Facebook Credit is currently ~7p) that you just hard code in your app the price of 1 Facebook Credit in your local currency, and if required display this. I think one of the reasons why Facebook don't support this is that they didn't envisage apps using Credits to be restricted to one territory, however in reality not everything is a game to be used worldwide. :)
Just to sum this question up, I tried two methods. One was to pull the rate every 10 minutes from openexchange using this python function:
def update_ils_rate():
print "Updating ILS/USD exchange rate"
url = 'http://openexchangerates.org/latest.json'
response = requests.request('get', url)
content = response.content
data = loads(content)
return data['rates']['ILS']
However it seems that facebook credits calculates ILS(israeli sheqel) rate according to a different rate (calculations were off by a little). So we have decided to pull xml data from israel's central bank, using this function:
import requests, BeautifulSoup
def get_ils_rate():
response = requests.request('get', 'http://www.bankisrael.gov.il/currency.xml')
content = response.content
soup = BeautifulSoup(content)
currencies = soup.findAll('currency')
for c in currencies:
if c.currencycode.contents[0]=='USD':
return float(c.rate.contents[0])