Add a price from the stock exchange to mobile app in flutter - flutter

i want to add a gold price from the stock exchange to variable in flutter to mobile app, can someone give me some tips? Thanks a lot, wish u a good day :)
.

You would need an API to do that. Here is an example of a place you could get it from:
https://www.metals-api.com/
The API would give you a JSON format with which you'll have to iterate over the JSON data and get the prices of whatever commodities(eg: gold, silver, etc) you want. If you are new to API and JSON I would first research on that.

Related

Preview conversion rate with Binance API

I am working in a small Android App interacting with Binance API. I am trying to make something similar to:
https://www.binance.com/es/convert
That is, I would like to view the rate or price of a conversion and if I am interested in this rate, confirm it. With the end point:
/api/v3/order
I don't see the way of doing it, I just understand that you can place a market order and get the current price but I would like to preview the price proposed and confirm it in a few second in the same way that the above URL does it.
Could you please show me an example on how to do it or give me any clue?
Many thanks,
Joaquin
POST /api/v3/order endpoint is used for placing an real order into your account.
If you wish to get the latest price from the market, this ticket price is more suitable: GET /api/v3/ticker/price

Can you extract Facebook data by date range using Facepager?

I've been using Facepager for research purposes for almost a year now and I can't figure out how to extract data - public posts, comments and likes from a page, for instance - by date range. While other programs such as Netvizz gives me this option, Facepager seems to fail to do so.
Thank you.
You can use the since and until parameters for this, e.g. set since (left side in parameter settings) to 2017-09-13 (right side) when fetching posts of a page. See the section Time Based Navigation in the Facebook Graph API.
Keep in mind that accessing very old data with the API is limited by Faceebok. Most social media platforms are aligned to the presence :)
BTW: we just opened a Group on Facebook for getting help.

Ripping posts from a facebook group

I'm an admin for a very active facebook group, and I'm looking to be able to extract the posts as a text file so that I can do statistical analysis on it for a research project.
Honestly, I've never really worked with programatically interacting with facebook, but it seems like it would be a simple query. Can anyone point me in the right direction?
Prerequisites:
Your group needs to be publicly viewable
You need to have signed up to make a Facebook app, in order to get the APP_ID AND SECRET_KEY.
Then, (example in PHP, but should easily be transposed to another language):
$url =
"https://graph.facebook.com/{$group_id}/feed?access_token=APP_ID|SECRET_KEY";
$data = json_decode(file_get_contents($url));
$data is just JSON formatted data, that should be easy to parse, especially with probable preexisting JSON helper libraries.
I would suggest this fb-graph post from my colleague: http://rad.batnag.org/2011/04/ruby-hacking-secrets-from-barney-stinson/ as a starting point.

Retrieving image from salesforce for iOS

I m working on iOS integration with SalesForce. I stuck in following points.
I m using #"SELECT Contact.FirstName FROM Contact" query for getting all member list. Now i want retrieve profile image and company logo for above FirstName person. How can I get these info. One more thing I m using ZKSForce framework.
Thanks.
#Swap
There is no images as standard fields for the Contact object so I don't know what you thought you were trying to retrieve.
Using the user record you can retrieve the chatter photo of a particular person, but I am not aware of such a feature on contact unless you have added it as a custom field. If you provide some more information I might be able to help further.
Paul
# Swap, they have not implemented any function for retrieving image for any user or company logo.
You can see this link for more information.
They are simply returning this information in loginResult.

How to get Bing 'daily mobile wallpaper' address

is There anyone know how to get the Bing 'daily mobile wallpaper' address.
if you visit bing.com via your IPhone, you will see a beautiful wallpaper.
Bing change it everyday, and provide two resolution format for Portrait and landscape.
for example, today's Bing mobile wallpaper are from
http://www.bing.com/fd/hpk2/LouetLighthouse_EN-US2132342110_360x480.jpg
http://www.bing.com/fd/hpk2/LouetLighthouse_EN-US2132342110_480x360.jpg
appreciate your help in advance.
Eric
parse this url http://www.bing.com/HPImageArchive.aspx?format=xml&idx=0&n=10
as xml.
you can change value of N to change number of images.
Unfortunately the URL for the wallpaper changes everyday. The only way to would be to scrape the HTML of the page and find where it references the image.
Another similar method would be to use www.istartedsomething . com / bingimages, a site which archives the Bing images. They provide a RSS feed via feedburner for more easy scraping: http://feeds.feedburner.com/bingimages