Socket
Socket
Sign inDemoInstall

stock_note_api_documentation

Package Overview
Dependencies
39
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    stock_note_api_documentation

_StockNote_API_is_a_set_of_Rest_APIs_using_which_users_can_build_customized_applications_based_on_their_trading_requirements__It_facilitates_the_users_of_the_APIs_to_login_search_symbols_place_orders_and_execute_them_view_their_order_status_positions_and_


Version published
Weekly downloads
4
increased by100%
Maintainers
1
Install size
2.76 MB
Created
Weekly downloads
 

Readme

Source

stock_note_api_documentation

StockNoteApiDocumentation - JavaScript client for stock_note_api_documentation StockNote API is a set of Rest APIs using which users can build customized applications based on their trading requirements. It facilitates the users of the APIs to login, search symbols, place orders and execute them, view their order status, positions and holdings etc. This documentation provides you with all the necessary details to understand the SAMCO StockNote API collection. APIs are compatible with both Javascript and Python. For any issues or support, please raise ticket to us using the <a href="https://www.samco.in/support/index/tradeapi\">support link and we will be happy to assist you. For Reference you can download postman collection <a href="http://developers.stocknote.com/doc/StockNoteApi.postman_collection.json\">Click here For downloading a list of all tradeable scrips across exchanges please <a href="https://developers.stocknote.com/doc/ScripMaster.csv\">Click here This is a CSV file which you can import into your database. If you are using Python or Java as client platform to code your strategies and integrate with our APIs, you can use our StockNoteBridge which provides pre-written wrappers over StockNote APIs that ensure seamless and reliable connectivity to the APIs and help you fast-track your development process. <table style="width:100%">LanguagesDocumentationPython<a href="https://github.com/samco-sdk/Python-SDK/blob/master/README.md\">Python SDK DocumentationJava<a href="https://github.com/samco-sdk/Java-SDK/blob/master/README.md\">Java SDK Documentation Add 'session token' of login api response as 'x-session-token' in header param of all Apis. NOTE: To ensure stability and there by provide seamless services to our customers, Samco may set limits on your use of the StockNote APIs (for example, limit on the number of requests sent to a specific API) . If you have additional questions regarding the rate limits on APIs, please reach out to us using the <a href="https://www.samco.in/support/index/tradeapi\">support link and we will be happy to assist you.
This SDK is automatically generated by the Swagger Codegen project:

  • API version: 1.0
  • Package version: 1.0
  • Build package: io.swagger.codegen.languages.JavascriptClientCodegen

Installation

For Node.js

npm

To publish the library as a npm, please follow the procedure in "Publishing npm packages".

Then install it via:

npm install stock_note_api_documentation --save
Local development

To use the library locally without publishing to a remote npm registry, first install the dependencies by changing into the directory containing package.json (and this README). Let's call this JAVASCRIPT_CLIENT_DIR. Then run:

npm install

Next, link it globally in npm with the following, also from JAVASCRIPT_CLIENT_DIR:

npm link

Finally, switch to the directory you want to use your stock_note_api_documentation from, and run:

npm link /path/to/<JAVASCRIPT_CLIENT_DIR>

You should now be able to require('stock_note_api_documentation') in javascript files from the directory you ran the last command above from.

git

If the library is hosted at a git repository, e.g. https://github.com/YOUR_USERNAME/stock_note_api_documentation then install it via:

    npm install YOUR_USERNAME/stock_note_api_documentation --save

For browser

The library also works in the browser environment via npm and browserify. After following the above steps with Node.js and installing browserify with npm install -g browserify, perform the following (assuming main.js is your entry file, that's to say your javascript file where you actually use this library):

browserify main.js > bundle.js

Then include bundle.js in the HTML pages.

Webpack Configuration

Using Webpack you may encounter the following error: "Module not found: Error: Cannot resolve module", most certainly you should disable AMD loader. Add/merge the following section to your webpack config:

module: {
  rules: [
    {
      parser: {
        amd: false
      }
    }
  ]
}

Getting Started

Please follow the installation instruction and execute the following JS code:

var StockNoteApiDocumentation = require('stock_note_api_documentation');

var api = new StockNoteApiDocumentation.HistoricalCandleDataApi()

var xSessionToken = "xSessionToken_example"; // {String} Session token that should be used with API request is given in the response. It is used as an authenticator. A session token is valid for 24 hours or until a new login request is given, where you a new session token will be generated and the previous one will get expired.

var symbolName = "symbolName_example"; // {String} Symbol name of the scrip.

var fromDate = "fromDate_example"; // {String} From date in yyyy-MM-dd

var opts = { 
  'exchange': "exchange_example", // {String} Name of the exchange.Valid exchanges values (BSE/ NSE/ NFO/ MCX/ CDS).If the user does not provide an exchange name, by default considered as NSE.For trading with BSE, NFO, CDS and MCX, exchange is mandatory.
  'toDate': "toDate_example" // {String} To date in yyyy-MM-dd
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getHistoricalCandleData(xSessionToken, symbolName, fromDate, opts, callback);

Documentation for API Endpoints

All URIs are relative to https://api.stocknote.com/tradeapi

ClassMethodHTTP requestDescription
StockNoteApiDocumentation.HistoricalCandleDataApigetHistoricalCandleDataGET /history/candleDataHistorical candle data
StockNoteApiDocumentation.HistoricalCandleDataApigetIndexCandleDataGET /history/indexCandleDataIndex Historical CandleData
StockNoteApiDocumentation.HoldingsApigetHoldingGET /holding/getHoldingsUser Holdings
StockNoteApiDocumentation.IntraDayCandleDataApigetIndexIntradayCandleDataGET /intraday/indexCandleDataIndex IntraDay candle data
StockNoteApiDocumentation.IntraDayCandleDataApigetIntradayCandleDataGET /intraday/candleDataIntraday candle data
StockNoteApiDocumentation.OptionApigetOptionContractsGET /option/optionChainOption Chain
StockNoteApiDocumentation.OrdersApicancelOrderDELETE /order/cancelOrderCancel Order
StockNoteApiDocumentation.OrdersApicancelOrderBODELETE /order/exitBOCancel BO Order
StockNoteApiDocumentation.OrdersApicancelOrderCODELETE /order/exitCOCancel CO Order
StockNoteApiDocumentation.OrdersApigetOrderBookGET /order/orderBookOrder Book
StockNoteApiDocumentation.OrdersApigetOrderStatusGET /order/getOrderStatusGet Order Status
StockNoteApiDocumentation.OrdersApigetTriggerOrderNumbersGET /order/getTriggerOrdersTriggerOrders
StockNoteApiDocumentation.OrdersApimodifyOrderPUT /order/modifyOrder/{orderNumber}Modify Order
StockNoteApiDocumentation.OrdersApiplaceOrderPOST /order/placeOrderPlace Order
StockNoteApiDocumentation.OrdersApiplaceOrderBOPOST /order/placeOrderBOPlace BO Order
StockNoteApiDocumentation.OrdersApiplaceOrderCOPOST /order/placeOrderCOPlace CO Order
StockNoteApiDocumentation.PositionsApiconvertPositionPOST /position/convertPositionPosition Conversion
StockNoteApiDocumentation.PositionsApigetPositionsGET /position/getPositionsUser Positions
StockNoteApiDocumentation.PositionsApisquareOffPositionPOST /position/squareOffPosition Square Off
StockNoteApiDocumentation.QuoteApigetQuoteGET /quote/getQuoteGet Quote
StockNoteApiDocumentation.QuoteApigetindexQuoteGET /quote/indexQuoteIndex Quote
StockNoteApiDocumentation.SearchEquityDerivativeApisearchEquityDerivativeGET /eqDervSearch/searchSearch Equity scrips
StockNoteApiDocumentation.StreamingDataApigetStreamingForMarketDataGET /wss:/stream.stocknote.com/.Streaming Market Data
StockNoteApiDocumentation.StreamingDataApigetStreamingForQuoteGET /wss:/stream.stocknote.comStreaming Quote Data
StockNoteApiDocumentation.TradeBookApigetTradeBookGET /trade/tradeBookTrade Book
StockNoteApiDocumentation.UserLimitsApigetLimitsGET /limit/getLimitsUser Limits
StockNoteApiDocumentation.UserLoginApiloginPOST /loginUser Login
StockNoteApiDocumentation.UserLogoutApilogoutDELETE /logoutUser Logout

Documentation for Models

Documentation for Authorization

All endpoints do not require authorization.

FAQs

Last updated on 17 Nov 2020

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc