0.2.16 • Published 2 years ago

@quantgate-systems/sentiment v0.2.16

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

SentimentGraph

Installation

npm i --save @quantgate-systems/sentiment or if you are using yarn, yarn add @quantgate-systems/sentiment

Usage

In order to use Sentiment Graph, create a user on Pilot application and pass your credentials to Sentiment component

Note

When using create-react-app please ensure you are using the latest version of react and react-dom , i.e. ^18.1.0

create-react-app

import {SentimentSpectrumApp} from '@quantgate-systems/sentiment';

const [currentSymbol, setCurrentSymbol] = useState('MSFT');

//sample handler for click change symbol
const handleSymbolChange = useCallback(() => {
  setCurrentSymbol('AAPL');
}, []);

return (
  <SentimentSpectrumApp
    credentials={{
      UserName: 'your user name',
      Password: 'your password',
    }}
    brokerName={
      'simulation-mode' ||
      'demo-mode' ||
      'signals-only' ||
      'paper-forex' ||
      'alt5' ||
      'bitfinex' ||
      'binance' ||
      'bittrex' ||
      'bitstamp' ||
      'gemini' ||
      'kraken' ||
      'liquid'
    }
    symbol={currentSymbol}
    width={500}
  />
);

next.js

import dynamic from 'next/dynamic';

const SentimentSpectrumApp = dynamic(() => import('@quantgate-systems/sentiment'));

const [currentSymbol, setCurrentSymbol] = useState('MSFT');

//sample handler for click change symbol
const handleSymbolChange = useCallback(() => {
  setCurrentSymbol('AAPL');
}, []);

return (
  <SentimentSpectrumApp
    credentials={{
      UserName: 'your user name',
      Password: 'your password',
    }}
    brokerName={
      'simulation-mode' ||
      'demo-mode' ||
      'signals-only' ||
      'paper-forex' ||
      'alt5' ||
      'bitfinex' ||
      'binance' ||
      'bittrex' ||
      'bitstamp' ||
      'gemini' ||
      'kraken' ||
      'liquid'
    }
    symbol={currentSymbol}
    width={500}
  />
);

Note:

brokerName could be one of the following and it will return a Sentiment Graph:

  • Traditional Brokerages
    • demo-mode
    • simulation-mode
    • signals-only
    • paper-forex
  • Digital Exchanges
    • bitfinex
    • binance
    • bittrex
    • bitstamp
    • gemini
    • kraken
    • liquid
0.2.16

2 years ago

0.2.15

2 years ago

0.2.14

2 years ago

0.2.13

2 years ago

0.2.12

2 years ago

0.2.11

2 years ago

0.2.10

2 years ago

0.2.7

2 years ago

0.2.9

2 years ago

0.2.8

2 years ago

0.2.6

2 years ago

0.2.5

2 years ago

0.2.3

2 years ago

0.2.2

2 years ago

0.2.1

2 years ago

0.1.13

2 years ago

0.1.12

2 years ago

0.1.11

2 years ago

0.1.10

2 years ago

0.1.9

2 years ago

0.1.8

2 years ago

0.1.7

2 years ago

0.1.6

2 years ago

0.1.5

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago