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
Related
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.
I want to import posts of a page between 07-12-2017 and 10-12-2017.
I have converted the dates to unix timestamps.
https://graph.facebook.com/v2.11/ekantipur?fields=posts.until(1512926148).limit(125)&access_token=MyAccessToken
works and so does
https://graph.facebook.com/v2.11/ekantipur?fields=posts.since(1512666948).limit(125)&access_token=MyAccessToken
But since and until together does not work. It only shows a single id.
Is there an another way to accomplish this task? If yes please reply. Thankyou in advance.
Update here is my updated Url with since and until. Its still not working.
123456/posts?since=07-12-2017&until=10-12-2017
Can you update the original post with your combined Since and Until?
I'm assuming that the SINCE is set to 7/17 and the UNTIL is 10/17, correct? It looks that way from the converted numbers, but I try not to assume it isn't something small like that :). No offense intended.
Looking at the graph API, I am using the page id of one I am the admin of and using since and until and it's coming back with posts between 07-12-2017 and 10-12-2017. I'm wondering if it has something to do with the limit in your urls. What if the limit statements are narrowing things down too much?
I'm just putting this into the graph API and getting the results I'm expecting: (no, my page id isn't 123456)
Granted, I'm not calling it in a url, Graph API is pretty forgiving.
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.
I have a Facebook Pixel on my website that is tracking events. I saw on the Ads Manager dashboard, that the pixel logs my events in a categorized way, i.e.:
PageView, ViewContent, InitiateCheckout, etc.
Although when logging stats, I include some extra parameters like the product_id maybe or other things, that way when the PageView is being logged, at least I will know which product_id it refers to.
The problem is that the Facebook Ads Dashboard doesn't show any of the extra parameters, it only displays the Count field.
After doing some research, I found this link on Facebook Pixel Stats, where they claim:
Use the Facebook Pixel Stats edge to get pixel statistics.
I tried using the Graph API Explorer, and even the iOS FB SDK for it (API Here) they both return an empty data array:
{
"data": [
]
}
I tried multiple parameter combinations, fields, and everything else to no avail.
If anyone knows whether I'm looking at the wrong place, or what not, all I'm interested in is reading those "extra" parameters that I'm appending to every FB Pixel event I log. Thank you!
You need specifing the parameters for it.
Example:
{fb_pixel_id}/stats?aggregation=url
The answer is displayed for a specific period of time in the past - I would say 24 hours.
You can use paging at the bottom of the json response for going back in time: use the link provided in the content of the field 'previous', and you can step back day by day.
Can you let me know when a person 'Likes' my facebook page, I would
give them a 10% discount, but will that person only get the discount
the ONE time? I did a test as a new customer and click 'like' and
ordered. but when I went back it looks like I can re-order as much as I
want for a 10% discount.
this should be ONLY ONE time.
Is there a way to make this possible?
You can check if a person has liked your page, but you cant get a callback when they actually do it. Also there are strict rules on rewarding users for liking your page/app etc so make sure you read the guide fully before implementing something you could be told off for:
https://developers.facebook.com/docs/guides/policy/examples_and_explanations/Rewarding_Users/
Make the coupon codes usable only once in your backend?