Plugin Directory

Changeset 2644505


Ignore:
Timestamp:
12/15/2021 12:08:45 PM (4 years ago)
Author:
deios
Message:

New version 1.2.2, small fixes.

Location:
live-stock-prices-for-wordpress/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • live-stock-prices-for-wordpress/trunk/admin/template/options.php

    r2619034 r2644505  
    88</div>
    99
    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 <a
    13         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>
     11Default demo API key OeAFFmMliFG5orCUuwAKQ8l4WWFQ67YX provided with the plugin has only access to Apple Inc (AAPL.US) and Vanguard Total Stock Market ETF (VTI.US).
     12To 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.
    1515<br/><br/>
    1616Here <a href="https://eodhistoricaldata.com/knowledgebase/?utm_source=wordpress&utm_medium=link&utm_campaign=eodplugin"
     
    1818with all available symbols and exchanges.
    1919<br/><br/>
    20 <h4>BENEFITS</h4>
     20<h3>BENEFITS</h3>
    2121<ul>
    2222    <li>NO CODING. Easy installation and use.
     
    2525    <li>We support 120+ CRYPTO currencies and 150+ FOREX pairs.
    2626</ul>
    27 <br/><br/>
    28 <h4>Possible tags for data feeds</h4>
    29 There are 3 different data feeds supported now.
    3027
    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>
    4129<b>INlINE</b>. Just put the following code into your post: <b>[eod_ticker target="AAPL.US"]</b>
    4230and you will get an actual price for AAPL (Apple Inc) traded on NASDAQ each time someone requests the page.
     
    5139<br/><br/>
    5240
    53 <h4>More questions?</h4>
     41<h3>More questions?</h3>
    5442<p>
    5543    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  
    1616    function get_eod_token_callback(){
    1717        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();
    1919        wp_die();
    2020    }
  • live-stock-prices-for-wordpress/trunk/eod-stock-prices-plugin.php

    r2619034 r2644505  
    55Plugin URI: https://eodhistoricaldata.com/knowledgebase/plugins
    66Description: The stock prices plugin allows you to use a widget and a shortcode to display the ticker data you want.
    7 Version: 1.2.0
    8 Author: EOD Historical Data
     7Version: 1.1.5
     8Author: Eod Historical Data
    99Author URI: https://eodhistoricaldata.com
    1010*/
     
    112112         * @return string
    113113         */
    114         public function get_eod_api_key(){
     114        public static function get_eod_api_key(){
    115115            $plugin_options = get_option('eod_options');
    116116           
  • live-stock-prices-for-wordpress/trunk/js/eod-stock-prices.js

    r2619034 r2644505  
    11jQuery(async function($){
    22    const eod_api_token = await $.ajax({
    3         dataType: "json",
    43        method: "POST",
    54        url: eod_ajax_url,
     
    114113       
    115114        // Get and display close value
    116         console.log(eod_t_list);
    117115        get_eod_ticker('historical', eod_t_list, function(data){
    118116            if(!data || data.error) return false;
    119             console.log(data);
    120117            if(data.code){
    121118                render_eod_ticker('eod_historical', data.code, data.close, data.previousClose);
    122119            }else if(data['0']){
    123120                for(const [key, item] of Object.entries(data)){
    124                     console.log(item.code+'.'+item.exchange_short_name, item.close, item.prev_close);
    125121                    render_eod_ticker('eod_historical', item.code+'.'+item.exchange_short_name, item.close, item.prev_close);
    126122                }
  • live-stock-prices-for-wordpress/trunk/readme.txt

    r2619041 r2644505  
    44Tags: stocks, stock markets, quote, ticker, securities
    55Requires at least: 4.0
    6 Tested up to: 5.8.1
    7 Stable tag: 1.2.1
     6Tested up to: 5.8.2
     7Stable tag: 1.2.2
    88Requires PHP: 5.4
    99License: GPLv2 or later
     
    2929<br/><br/>
    3030The <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.
    4331
    4432There are two ways to use the plugin.
Note: See TracChangeset for help on using the changeset viewer.