Click or drag to resize

How to bulk import instruments from a txt file

ArthaChitra has a import feature which facilates user to append instrumnet from a txt file. This is helpful in case user is appneding a large number of instruments.

How to import a txt/zip file

Please follow the below steps to import a Instrument.txt file into ArthaChitra

  • Download the txt or zip file. If the instrument file is in zip format then extract the txt file.
  • In ArthaChitra Main View menu bar, goto Settings > Instruments > Import
  • In the 'Select file dialog' select the downloaded txt file and click on the Open button
  • Restart ArthaChitra when prompted
Instrument bulk import format

The instrument txt file is a text file separated by ';' (semi-colon - without the ')

The header format for the txt file will be:

@Name;@Description;@InstrumentType;@Exchange;@Currency;@Symbols;@TickSize;@IsWeeklyContract;@Point Value;@Dividends;@Splits;@Rollover

The below table further clarifies the fields.

Field

Type

Description

Name

String

Max length 50

Description

String

Max length 100

Instrument Type

Int32

InstrumentType

Exchange

Int32

Exchange

Currency

Int32

Currency

Connection symbols

String

Connection symbol separated by ',' (comma - without the ')

Tick size

Double

Tick size of the instrument

Is weekly contract

Boolean

For options only

Point value

Double

Point value of the instrument

Dividends

DateTime-Double

Date-Amount (separated by ',' (comma - without the ')

Splits

DateTime-Double

Date-Factor (separated by ',' (comma without the ')

Rollover

String

String value (applicable for Futures scripts only)

Note: Entries begining with '#' (without the ') are treated as comments and will be ignored

How to import Instrument List

An Instrument List is a text file separated by ';' (semi-colon without the ') having 3 (three) fields namely

  • @InstrumentList: Each line must start with '@InstrumentList' indicating its an instrument list.
  • Name of the list: Custom name of the instrument list.
  • Instrument name: Name of instrument(s) separated by ',' (comma without the ').

An example will be:

@InstrumentList;Cash;^NIFTY NSE,BERGEPAINT NSE,ONGC NSE,RELIANCE NSE,TVSMOTOR NSE,BANKNIFTY 05 2022 NSE

Note: The Instrument names must conform the naming convensions as mentioned here