Skip to content

sanesource/nse-fetch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nse-fetch

Fetch indian stock market data available on nse using this library

Installation

go get -u github.com/sanesource/nse-fetch

Methods

  • FetchAutoComplete

Takes a symbol (string) keyword, and returns instruments matching that keyword

Example
// Import package
import (
	NSE "github.com/sanesource/nse-fetch"
)

// Usage
func main() {
    response, err := NSE.FetchAutoComplete(symbol)
    if err != nil {
        // handle error here
    }

    // response -> { "data": ... }
}
  • FetchEquityHistorical

Takes symbol (string), from (string) and to (string) and returns historical data for given symbol

Example
// Import package
import (
	NSE "github.com/sanesource/nse-fetch"
)

// Usage
func main() {
    response, err := NSE.FetchEquityHistorical(symbol, "23-05-2025", "23-05-2025")
    if err != nil {
        // handle error here
    }

    // response -> { "data": [...] }
}
  • FetchNifty50Performance

Returns Nifty 50 index and its 50 constituents latest performance data

Example
// Import package
import (
	NSE "github.com/sanesource/nse-fetch"
)

// Usage
func main() {
    response, err := NSE.FetchNifty50Performance()
    if err != nil {
        // handle error here
    }

    // response -> { "data": [...] }
}

Status

Currently WIP

About

Fetch indian stock market data available on nse using this library

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages