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.
Please follow the below steps to import a Instrument.txt file into ArthaChitra
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 | Max length 50 | |
Description | Max length 100 | |
Instrument Type | ||
Exchange | ||
Currency | ||
Connection symbols | Connection symbol separated by ',' (comma - without the ') | |
Tick size | Tick size of the instrument | |
Is weekly contract | For options only | |
Point value | Point value of the instrument | |
Dividends | Date-Amount (separated by ',' (comma - without the ') | |
Splits | Date-Factor (separated by ',' (comma without the ') | |
Rollover | String value (applicable for Futures scripts only) |
Note: Entries begining with '#' (without the ') are treated as comments and will be ignored
An Instrument List is a text file separated by ';' (semi-colon without the ') having 3 (three) fields namely
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