Skip to content

Tiny go package for fetching high and low value of a stock for any given period range using kite connect historical data APIs.

License

Notifications You must be signed in to change notification settings

ranjanrak/stock-high-low

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

stock-high-low

Tiny go package for fetching high and low value of stock for any given period range using Kite connect Historical data APIs.

Installation

go get -u github.com/ranjanrak/stock-high-low

Usage

package main

import (
	contracthighlow "github.com/ranjanrak/contracthighlow"
)

func main() {
    // fetch 52 weeks high and low data
    result := contracthighlow.GetHighLow(contracthighlow.UserParam{
		ApiKey:      "your_api_key",
		AccessToken: "your_access_token",
		Token:       12942338,
		Day:         0,
		Month:       0,
		Year:        1,
    })
    
    fmt.Printf("%+v\n", result)
}

Response

{High:4577.7 HighDate:2021-11-22 00:00:00 +0530 IST 
Low:3981.45 LowDate:2021-06-25 00:00:00 +0530 IST}

About

Tiny go package for fetching high and low value of a stock for any given period range using kite connect historical data APIs.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages