2017 © Pedro Peláez
 

yii2-extension yii2-tradingview-widget

TradingView Charting Library wrapper for Yii2

image

trendy-tech/yii2-tradingview-widget

TradingView Charting Library wrapper for Yii2

  • Sunday, July 15, 2018
  • by sn8
  • Repository
  • 1 Watchers
  • 0 Stars
  • 6 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Yii2 TradingView Chart Widget

TradingView Charting Library wrapper for Yii2., (*1)

Installation

Before install, you need to get access to the private repository "https://github.com/tradingview/charting_library": https://tradingview.com/HTML5-stock-forex-bitcoin-charting-library/, (*2)

git clone https://github.com/tradingview/charting_library.git vendor/tradingview/charting_library/
composer require trendy-tech/yii2-tradingview-widget dev-master

Usage

use TrendyTech\TradingView;
use yii\web\JsExpression;

echo TradingView::widget([
    'options' => [
        //'debug' => true, // uncomment this line to see Library errors and warnings in the console
        'fullscreen' => true,
        'symbol' => 'AAPL',
        'interval' => 'D',
        'datafeed' => new JsExpression('new Datafeeds.UDFCompatibleDatafeed("https://demo_feed.tradingview.com")'),
        'locale' => 'en',
        //  Regression Trend-related functionality is not implemented yet, so it's hidden for a while
        'drawings_access' => ['type' => 'black', 'tools' => [['name' => 'Regression Trend']]],
        'disabled_features' => ['use_localstorage_for_settings'],
        'enabled_features' => ['study_templates'],
        'charts_storage_url' => 'http://saveload.tradingview.com',
        'charts_storage_api_version' => '1.1',
        'client_id' => 'tradingview.com',
        'user_id' => 'public_user_id'
    ]
]);

The Versions

15/07 2018

dev-master

9999999-dev

TradingView Charting Library wrapper for Yii2

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.4.0

 

by Artem Sinkov

yii2 tradingview charting library