Import ride final price on Uber driver app - return-value

Is there anyway to get the last price of a driver to build a calculator of costs and earnings by day and in real time?
I found in the documentation the estimate price (high and lowe), but it didnt give me the final price, anyone know a way to get that info from de API?
Thanks.

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.

How to set a TP and SL using Limit and Stop orders in FIX API/QuickFIX/n

I am using QuickFIX/n to write an application. I followed an example from the documentation(QuickFIX/n Example). Using this example I got the application working, but I want to know how to get the market price into my trading session so that I can set Limit and Stop Orders that act as SL/TP for my market orders.
The problem is I don't know how to get the pricing data into my trading application. Settings for the trading session and pricing sessions are different(even the host address, port, username, password).
I know that I need to have 2 sessions, pricing and trading sessions running simultaneously in the same application where I can access the pricing details such as Bid/Ask price so that I can set the limit/stop orders, but I don't know how to achieve this.
If someone can provide some assistance in this regards it would be great.
(an example application would be brilliant)
Thank you in advance.

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.

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])

iPhone Native Stocks Application

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