Git Product home page Git Product logo

tickr's Introduction

Tickr CI

News CateGOrizer for public companies listed in stock exchanges in Bangladesh.

Overview

Tickr provides a Go package which let you categorize news data(title,article etc.) into TICKER of publicly traded companies in stock exchanges here in Bangladesh.

It is based on the bdstock.json dataset that I developed which includes 3 datapoints for each public company listed in stock market of Bangladesh:

  1. Company names, the way they usually appear in newspaper.
  2. TICKER of that company.
  3. Sector of that company.

This package includes two API:

  1. Get(): for extracting TICKER(s) from given news data.
  2. Sector(): for extracting sector from given TICKER.

In addition this library provides a CLI to perform the above operations via console.

Getting Started

Installing

To start using Tickr, install Go and run go get:

$ go get github.com/rafatbiin/tickr/...

This will retrieve the library and install the tickr command line utility into your $GOBIN path.

Getting the TICKER(s)

The top-level object in Tickr is a Ticker.

To get TICKER(s) for your news data, simply create an instance of Ticker and use the t.Get(news_data) function:

package main

import (
	"github.com/rafatbiin/tickr"
)

func main() {
	t, err := tickr.New()
	if err != nil {
		// Handle error
	}
	news_data := "রূপালী ব্যাংকের দ্বিতীয় প্রান্তিক প্রকাশ"
	tickers := t.Get(news_data) // map(TICKER->frequency) => {"RUPALIBANK":1}
	...
}

Getting the Sector

To get Sector of a publicly traded Compnay in Bangladesh, use the t.Sector(TICKER) function:

package main

import (
	"github.com/rafatbiin/tickr"
)

func main() {
	t, err := tickr.New()
	if err != nil {
		// Handle error
	}
	ticker := "RUPALIBANK"
	s := t.Sector(ticker) // bank
	...
}

CLI

For TICKER(s):

$ tickr ticker "রূপালী ব্যাংকের দ্বিতীয় প্রান্তিক প্রকাশ"
{"RUPALIBANK":1}

For Sector:

$ tickr sector RUPALIBANK
bank

tickr's People

Contributors

rafatbiin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.