Bitcoin Price Connecting to the Binance API. Cached for 30 seconds with Pro Plugin.
Random Quote Connecting to the Quotable API. Cached for 30 seconds with Pro Plugin.
Fear grows in darkness; if you think there's a bogeyman around, turn on the light.
Connect a form to the Binance API
Info about these demos
Example 1: Bitcoin Price
In the first example we are connecting to the Binance API to get the latest Bitcoin price. We have written a step by step guide on how we have done this. We have also used the Pro Plugin to cache the call for 30 seconds, just to avoid hitting the Binance API too often.
Example 2: Random quotes
In the second example we are connecting to the Quotable API to return a random quote. You can find details on this API at https://github.com/lukePeavey/quotable. We have also used the Pro Plugin to cache the call for 30 seconds.
Example 3: Bitcoin hourly high/low chart
For the chart example, we are connecting to the Binance API to get 48 hours of high/low prices of bitcoin and then displaying this using the wpDataTables plugin. We have also used the Pro Plugin to cache the call for 30 minutes.
Example 4: Connecting a form to Binance API
This example connects a Gravity Forms form to the Binance API and returns a price for the crypto pair that is entered into the form. A very basic example, but this type of integration is simple using the Pro Plugin.