Fetching market value of my cryprocurrency from Waves Exchange - wavesplatform

Our cryptocurrency trades at Waves platform against BTC.
How can i fetch the market value of my cryptocurrency using my PHP program ? Any API available for the same ?

You can use this one library for PHP development: https://github.com/deemru/WavesKit
Or you can use public API of Waves.Exchange matcher: https://matcher.waves.exchange/
Example of request URL to get the last price and other info in USDN/WAVES pair:
https://matcher.waves.exchange/matcher/orderbook/DG2xFkPdDwKUoBkzGAhQtLpSGzfXLiCYPEzeKH2Ad24p/WAVES/status

Related

Filtering certain coins based upon name with CoinMarketCap

I'm currently attempting to use the CoinMarketCap API but finding it frustrating.
I'm wanting to use this URL to query their API:
https://pro-api.coinmarketcap.com/v1/cryptocurrency/listings/latest
However, rather than finding all, or just simply filtering based upon the number, I want to find a certain few coins.
So for example, I want to only find Bitcoin, Ethereum and Cardano.
Looking at their docs, it suggests you can sort by name, but it appears this is only listing them alphabetically, which I don't want to do.
So can anyone suggest how to query their API successfully and find just Bitcoin, Ethereum and Cardano using that GET URL above?
Here's the URL to the specific URL for the API request: https://coinmarketcap.com/api/documentation/v1/#operation/getV1CryptocurrencyListingsLatest
For this purpose, you can use the endpoint Quotes Latest:
https://pro-api.coinmarketcap.com/v1/cryptocurrency/quotes/latest
It allows you to pass a list of identifiers in a string as a parameter, like this:
1,1027,328
or a list of slugs:
bitcoin,ethereum,monero
or a list of symbols
BTC,ETH,XMR
If you trying to scrape information about new listings at crypto exchanges, you can be interested in this API:
https://rapidapi.com/Diver44/api/new-cryptocurrencies-listings/
It includes an endpoint with New Listings, New Pairs from the biggest exchanges and a very useful endpoint with information about exchanges where you can buy specific coins and prices for this coin at that exchange. It's a bit paid, but it's worth it!

Uber Api History Data Ordering

The get history api documentation does not specify whether the data returned is ordered from the latest trip time . The example data here looks like it is ordered from latest:
https://developer.uber.com/docs/riders/references/api/v1.2/history-get
But my application has a hard dependency on being able to fetch a sample of the latest trips.
Can anyone confirm whether or not this is guaranteed?
History endpoint supposes to return data in descending order - so the latest trips will be displayed first. But you can sort the data on your side how you prefer - you don't need to relay in response you are getting back from the endpoint. It is trivial to sort the list/collection of data - there are many samples how to do it on SO in any programing language you are using.

Which HTTP Method should I use when sending an instruction to modify the state of an in-memory resource object

We want to have an API, which is connected to Real Time Market Data systems and performs financial pricings.
As the pricing depends on those market data (and on parameters sent with the request in order to select the right mathematical model), can we say that the result of the pricing can be considered as a Resource ? Can the "Price" method can be actually a GET ?
We would want also to update the market data configuration to be able to configure the service on the fly (adding new market data systems to plug to).
The "resource" here can be the Market Data Container, but the instruction to modify it is not a resource... So what Http Method could it be ?
Thanks,
Laurent

Bing Maps REST API Basic key returns different results than Enterprise key

This unstructured format
http://dev.virtualearth.net/REST/v1/Locations?addressLine=3712%20Adelaide&adminDistrict=TX&locality=The%20Colony&countryRegion=US&postalCode=75056&maxRes=1&key=YourKey
does not seem to return the same result as this structured format
http://dev.virtualearth.net/REST/v1/Locations/US/TX/75056/The%20Colony/3712%20Adelaide?o=json&key=YourKey
The structured format is returning high confidence and the unstructured format is returning medium. What am I missing?
Edit: I never would have expected this. I have discovered the unstructured format returns medium confidence with my current API key and returns high confidence with a new trial key. What does this mean?
Trying the URL's you provided I see the exact same results with the same high confidence value.
Here is the response from the Microsoft Bing Team:
Issue Definition: Question regarding Bing Maps REST Location API service. Scope Agreement: As per our communication, you provided a query for 3712 Adelaide, The Colony, TX 75056 with the Bing Maps REST Location API with a Basic and Enterprise key and received different results and you would like to know the reason. The reason you are receiving different results is because we are in the middle of deploying new information to the Bing Maps REST geocoder. This information is first flighted on Basic (free) accounts before it is released to Enterprise customers.
Our Product Group let us know that it should be deployed to all Enterprise customers by the end of this month.

How can I download items by ItemType filter from QuickBooks for Window

I want to download item from Intuit data service (IDS) for windows by using Item type filter .
Like how can I query (post data) to download/retrieve only Inventory and Service item from QBDesktop using sync manager and IDS.
Reference links: https://ipp.developer.intuit.com/0010_Intuit_Partner_Platform/0050_Data_Services/0500_QuickBooks_Windows/0600_Object_Reference/Item
https://ipp.developer.intuit.com/0010_Intuit_Partner_Platform/0050_Data_Services/0500_QuickBooks_Windows/0200_Key_Concepts/0200_Custom_Fields/Data_Services_Custom_Fields#Retrieving_and_Filtering_Objects_With_Custom_Fields
If I understand what you are asking, then there is no query filter that will just get items where type=service or type-inventory, you need to query them all and filter the data on your side.
The v3 version of the API provides Simple Query Language where you will be able to provide the query you are asking, but the v3 is only in early beta for external partners today.
jarred