LoginSignup
4
7

More than 5 years have passed since last update.

TradingViewのデモを起動するまでの手順

Last updated at Posted at 2017-04-21

画面起動までの手順

  1. ここから「ライブラリのダウンロード」ボタンをクリックして、認証情報を登録
  2. 2、3日待機する
  3. 認証情報申請時に登録したGitHubのプロフィールに紐づいたメールアドレスに登録完了の知らせが届いた後、任意のフォルダで下記のコマンドを実行する
    git clone https://github.com/tradingview/charting_library
  4. 3のフォルダの場所でhttp serverを起動する(下記はPython3を使った例)
    python3 -m http.server

画面をみる方法

上記手順完了後、下記のURLにブラウザからアクセスする
http://localhost:8000/index.html
http://localhost:8000/intro.html
http://localhost:8000/mobile_black.html
http://localhost:8000/mobile_white.html
http://localhost:8000/test.html

動作概要

JQuery、charting_library.min.js、datafeed.jsを取り込み、「TradingView.onready」で「TradingView.widget」を実行するとチャートが起動する(index.html:26〜46行目)
    Version 1.11以降はJQueryが必要なくなる予定。

4
7
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
7