Changeset 2644505
- Timestamp:
- 12/15/2021 12:08:45 PM (4 years ago)
- Location:
- live-stock-prices-for-wordpress/trunk
- Files:
-
- 5 edited
-
admin/template/options.php (modified) (4 diffs)
-
eod-ajax.php (modified) (1 diff)
-
eod-stock-prices-plugin.php (modified) (2 diffs)
-
js/eod-stock-prices.js (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
live-stock-prices-for-wordpress/trunk/admin/template/options.php
r2619034 r2644505 8 8 </div> 9 9 10 <h3> Quick Start</h3>11 Default demo API key OeAFFmMliFG5orCUuwAKQ8l4WWFQ67YX provided with the plugin has only access to Apple Inc (AAPL.US) <br/>12 and Vanguard Total Stock Market ETF (VTI.US).To get the full coverage, you should subscribe to <a13 href="https://eodhistoricaldata.com/?utm_source=wordpress&utm_medium=link&utm_campaign=eodplugin">EOD Historical Data</a>14 service and get your API key.10 <h3>Documentation</h3> 11 Default demo API key OeAFFmMliFG5orCUuwAKQ8l4WWFQ67YX provided with the plugin has only access to Apple Inc (AAPL.US) and Vanguard Total Stock Market ETF (VTI.US). 12 To get the full coverage, you should subscribe to <a 13 href="https://eodhistoricaldata.com/?utm_source=wordpress&utm_medium=link&utm_campaign=eodplugin">EOD Historical 14 Data</a> service and get your API key. 15 15 <br/><br/> 16 16 Here <a href="https://eodhistoricaldata.com/knowledgebase/?utm_source=wordpress&utm_medium=link&utm_campaign=eodplugin" … … 18 18 with all available symbols and exchanges. 19 19 <br/><br/> 20 <h 4>BENEFITS</h4>20 <h3>BENEFITS</h3> 21 21 <ul> 22 22 <li>NO CODING. Easy installation and use. … … 25 25 <li>We support 120+ CRYPTO currencies and 150+ FOREX pairs. 26 26 </ul> 27 <br/><br/>28 <h4>Possible tags for data feeds</h4>29 There are 3 different data feeds supported now.30 27 31 <pre><code>[eod_historical target="AAPL.US"]</code></pre> 32 With this code you will get the end of day price for the latest trading day. Recommended to display EOD prices. 33 34 <pre><code>[eod_live target="AAPL.US"]</code></pre> 35 With this code you will get the 15-minutes delay price. 36 37 <pre><code>[eod_realtime target="AAPL.US"]</code></pre> 38 With this code you will get the real-time price with delay 50ms. 39 <br/><br/> 40 <h4>Two ways of using the plugin</h4> 28 <h3>Two ways of using the plugin</h3> 41 29 <b>INlINE</b>. Just put the following code into your post: <b>[eod_ticker target="AAPL.US"]</b> 42 30 and you will get an actual price for AAPL (Apple Inc) traded on NASDAQ each time someone requests the page. … … 51 39 <br/><br/> 52 40 53 <h 4>More questions?</h4>41 <h3>More questions?</h3> 54 42 <p> 55 43 Still have any questions? Or need any other data for equities, funds or ETFs? -
live-stock-prices-for-wordpress/trunk/eod-ajax.php
r2619037 r2644505 16 16 function get_eod_token_callback(){ 17 17 if (!wp_verify_nonce($_POST['nonce_code'], 'eod_ajax_nonce')) die('Stop!'); 18 echo json_encode( EOD_Stock_Prices_Plugin::get_eod_api_key());18 echo EOD_Stock_Prices_Plugin::get_eod_api_key(); 19 19 wp_die(); 20 20 } -
live-stock-prices-for-wordpress/trunk/eod-stock-prices-plugin.php
r2619034 r2644505 5 5 Plugin URI: https://eodhistoricaldata.com/knowledgebase/plugins 6 6 Description: The stock prices plugin allows you to use a widget and a shortcode to display the ticker data you want. 7 Version: 1. 2.08 Author: E ODHistorical Data7 Version: 1.1.5 8 Author: Eod Historical Data 9 9 Author URI: https://eodhistoricaldata.com 10 10 */ … … 112 112 * @return string 113 113 */ 114 public function get_eod_api_key(){114 public static function get_eod_api_key(){ 115 115 $plugin_options = get_option('eod_options'); 116 116 -
live-stock-prices-for-wordpress/trunk/js/eod-stock-prices.js
r2619034 r2644505 1 1 jQuery(async function($){ 2 2 const eod_api_token = await $.ajax({ 3 dataType: "json",4 3 method: "POST", 5 4 url: eod_ajax_url, … … 114 113 115 114 // Get and display close value 116 console.log(eod_t_list);117 115 get_eod_ticker('historical', eod_t_list, function(data){ 118 116 if(!data || data.error) return false; 119 console.log(data);120 117 if(data.code){ 121 118 render_eod_ticker('eod_historical', data.code, data.close, data.previousClose); 122 119 }else if(data['0']){ 123 120 for(const [key, item] of Object.entries(data)){ 124 console.log(item.code+'.'+item.exchange_short_name, item.close, item.prev_close);125 121 render_eod_ticker('eod_historical', item.code+'.'+item.exchange_short_name, item.close, item.prev_close); 126 122 } -
live-stock-prices-for-wordpress/trunk/readme.txt
r2619041 r2644505 4 4 Tags: stocks, stock markets, quote, ticker, securities 5 5 Requires at least: 4.0 6 Tested up to: 5.8. 17 Stable tag: 1.2. 16 Tested up to: 5.8.2 7 Stable tag: 1.2.2 8 8 Requires PHP: 5.4 9 9 License: GPLv2 or later … … 29 29 <br/><br/> 30 30 The <a href="https://eodhistoricaldata.com/knowledgebase/?utm_source=wordpress&utm_medium=link&utm_campaign=eodplugin" target="_blank"> full documentation</a> for all available symbols, exchanges and API methods is provided as well as email support for all subscribers.<br/><br/> 31 32 <h3>Possible tags for data feeds</h3>33 There are 3 different data feeds supported now.34 35 <pre><code>[eod_historical target="AAPL.US"]</code></pre>36 With this code you will get the end of day price for the latest trading day. Recommended to display EOD prices.37 38 <pre><code>[eod_live target="AAPL.US"]</code></pre>39 With this code you will get the 15-minutes delay price.40 41 <pre><code>[eod_realtime target="AAPL.US"]</code></pre>42 With this code you will get the real-time price with delay 50ms.43 31 44 32 There are two ways to use the plugin.
Note: See TracChangeset
for help on using the changeset viewer.