gfdl-rest


Namegfdl-rest JSON
Version 1.0.3 PyPI version JSON
download
home_pageNone
SummaryBeta Package to implement REST API of Global Datafeeds
upload_time2024-11-11 05:42:25
maintainerNone
docs_urlNone
authorGlobal Datafeeds
requires_python>=3.6
licenseNone
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Global Datafeeds Python Library Description

## Reference document for implementing python library of REST API by Global Datafeeds

  
REST API by Global Datafeeds is versatile, most modern, simple yet powerful API. This API will provide on demand realtime, historical and snapshot data in JSON /XML/ CSV format (for Tick, Minute and End-Of-Day periodicities). It is Suitable for Web, Mobile as well as Desktop Applications. Below is the list of functions and their details available in REST API. For more detailed documentation & support, refer to the page by  **Global Datafeeds** [here.](https://globaldatafeeds.in/global-datafeeds-apis/documentation-support/documentation/rest-api-documentation/) <br>

This python library is developed to save time and efforts of clients while working on implementation of REST API of Global Datafeeds. List of functions (Data Requests) available is given below.
 

## List of Functions:

1. GetLastQuote
2. GetLastQuoteShort
3. GetLastQuoteShortWithClose
4. GetLastQuoteArray
5. GetLastQuoteArrayShort
6. GetLastQuoteArrayShortWithClose
7. GetSnapshot
8. GetHistory
9. GetHistoryAfterMarket
10. GetExchanges
11. GetInstruments
12. GetInstrumentTypes
13. GetProducts
14. GetExpiryDates
15. GetOptionTypes
16. GetStrikePrices
17. GetServerInfo
18. GetLimitation
19. GetMarketMessages
20. GetExchangeMessages
21. GetLastQuoteOptionChain
22. GetExchangeSnapshot
23. GetLastQuoteOptionGreeks
24. GetLastQuoteArrayOptionGreeks
25. GetLastQuoteOptionGreeksChain
26. GetHistoryGreeks
27. GetTopGainersLosers
28. Parameters


---

# Getting Started

## Installing a Library

Client need to install this library to install the library by issuing the command from python console
```
python3 -m pip install gfdl_rest  
```
or on windows command prompt
```
pip install gfdl_rest  
```
---

## How to Connect using REST API

Once installation is completed client can connect to API server by the code sample given below:
<br><br>**Syntax:**<br>
```
import gfdl_rest as rs


# api= rs.<Function Name> ('<ENDPOINT>', '<API_KEY>', xml=False, format_csv=False)
```
Here in above code sample:

- Endpoint : endpoint is URL like 'http://endpoint:port/' or 'https://endpoint:port/'. End point URL and Port number will be provided by Global Datafeeds.

- API Key : This is the key which will be authenticated and once key was authenticated, client can request data by using function given in the above list.

---
## GetLastQuote:
In this client will receive record of last (latest one) 'LastTradePrice' of single symbol with more details like Open, High, Low Close and many more fields. This function will return single latest record of the requested symbol. Below is the sample code to get last quote data:
<br><br>**Syntax:**<br>	
```
import gfdl_rest as rs

api= rs.GetLastQuote('<ENDPOINT>', '<ENTER_API_KEY>', xml=False, format_csv=False)
result = api.Get_LastQuote('Exchange','InstrumentIdentifier',’ isShortIdentifier <Optional>[true]/[false][default=false]’)
print(result)
```
<br>**Example**  
```
import gfdl_rest as rs

api= rs.GetLastQuote('<ENDPOINT>', '<ENTER_API_KEY>', xml=False, format_csv=False)
result = api.Get_LastQuote('NSE','SBIN-I')
print(result)
```
Client will get latest data for 'SBIN' current contact in response. 'SBIN-I' is InstrumentIdentifier (Symbol) to understand more about the 'Symbol Naming Conventions' check [here.](https://globaldatafeeds.in/global-datafeeds-apis/global-datafeeds-apis/documentation-support/symbol-naming-conventions/)
<br>Sample response is given below. This response will be in JSON format.
<br>**Response**<br>
```
{'AVERAGETRADEDPRICE': 816.8, 'BUYPRICE': 814.9, 'BUYQTY': 12, 'CLOSE': 820.3, 'EXCHANGE': 'NSE', 'HIGH': 821.0, 'INSTRUMENTIDENTIFIER': 'SBIN', 'LASTTRADEPRICE': 814.9, 'LASTTRADEQTY': 1, 'LASTTRADETIME': 1724219587000, 'LOW': 813.3, 'OPEN': 820.3, 'OPENINTEREST': 0, 'PREOPEN': False, 'QUOTATIONLOT': 1.0, 'SELLPRICE': 814.95, 'SELLQTY': 325, 'SERVERTIME': 1724219587000, 'TOTALQTYTRADED': 3396213, 'VALUE': 2774026778.4, 'PRICECHANGE': -5.4, 'PRICECHANGEPERCENTAGE': -0.66, 'OPENINTERESTCHANGE': 0}
```
---
## GetLastQuoteShort:
In this client will receive record of last (latest one) 'LastTradePrice' of single symbol in short with limited fields/values. This function will return single latest record of the requested symbol. Below is the sample code to get last quote data:
<br><br>**Syntax:**<br>
```
import gfdl_rest as rs

api= rs.GetLastQuoteShort('<ENDPOINT>', '<ENTER_API_KEY>', xml=False, format_csv=False)
result = api.Get_LastQuoteShort('Exchange','InstrumentIdentifier',’ isShortIdentifier <Optional>[true]/[false][default=false]’)
print(result)
```
<br>**Example:**
```
import gfdl_rest as rs

api= rs.GetLastQuoteShort('<ENDPOINT>', '<ENTER_API_KEY>', xml=False, format_csv=False)
result = api.Get_LastQuoteShort('NSE','SBIN')
print(result)
```
Client will get latest data for 'NIFTY' current contact in response. 'NIFTY-I' is instrumentIdentifier (Symbol) to understand more about the 'Symbol Naming Conventions' check [here.](https://globaldatafeeds.in/global-datafeeds-apis/global-datafeeds-apis/documentation-support/symbol-naming-conventions/)
<br>Sample reponse is given below. This response will be in JSON format.
<br>**Response**<br>
```
{'BUYPRICE': 816.8, 'EXCHANGE': 'NSE', 'INSTRUMENTIDENTIFIER': 'SBIN', 'LASTTRADEPRICE': 816.9, 'LASTTRADETIME': 1724220139000, 'SELLPRICE': 816.9}
```
---	
## GetLastQuoteShortWithClose:
In this client will receive record of last (latest one) 'LastTradePrice' of single symbol in short with Close of Previous Day. This function will return single latest record of the requested symbol. Below is the sample code to get last quote data:
<br><br>**Syntax:**<br>
```
import gfdl_rest as rs

api= rs.GetLastQuoteShortWithClose('<ENDPOINT>', '<ENTER_API_KEY>', xml=False, format_csv=False)
result = api.Get_LastQuoteShortWithClose('Exchange','InstrumentIdentifier',’ isShortIdentifier <Optional>[true]/[false][default=false]’)

print(result)
```
<br>**Example**
```
import gfdl_rest as rs

api= rs.GetLastQuoteShortWithClose('<ENDPOINT>', '<ENTER_API_KEY>', xml=False, format_csv=False)
result = api.Get_LastQuoteShortWithClose('NSE','SBIN')
print(result)
```

Client will get latest data for 'NIFTY' current contact in response. 'NIFTY-I' is instrumentIdentifier (Symbol) to understand more about the 'Symbol Naming Conventions' check [here.](https://globaldatafeeds.in/global-datafeeds-apis/global-datafeeds-apis/documentation-support/symbol-naming-conventions/)
<br>Sample reponse is given below. This response will be in JSON format.
<br>**Response**<br>

```
{'BUYPRICE': 816.25, 'EXCHANGE': 'NSE', 'INSTRUMENTIDENTIFIER': 'SBIN', 'LASTTRADEPRICE': 816.35, 'LASTTRADETIME': 1724220269000, 'SELLPRICE': 816.35, 'CLOSE': 820.3}
```
---
## GetLastQuoteArray:
In this client will receive record of last (latest one) 'LastTradePrice' of multiple symbols with more details like Open, High, Low Close and many more fields. In this single call client can request maximum 25 number of symbols. This function will return array of latest record single for each requested symbol. Below is the sample code to get last quote data:
<br><br>**Syntax:**<br>
```
import gfdl_rest as rs

api= rs.GetLastQuoteArray('<ENDPOINT>', '<ENTER_API_KEY>', xml=False, format_csv=False)
result = api.GetLastQuoteArray('Exchange','InstrumentIdentifier',’ isShortIdentifier <Optional>[true]/[false][default=false]’)
print(result)
```
<br>**Example**
```
import gfdl_rest as rs

api= rs.GetLastQuoteArray('<ENDPOINT>', '<ENTER_API_KEY>', xml=False, format_csv=False)
result = api.GetLastQuoteArray('NFO','NIFTY-I+BANKNIFTY-I+FINNIFTY-I')
print(result)
```

Client will get array of latest data for 'NIFTY and BANKNIFTY' current contact in response. 'NIFTY-I AND BANKNIFTY-I' is instrumentIdentifier (Symbol) to understand more about the 'Symbol Naming Conventions' check [here.](https://globaldatafeeds.in/global-datafeeds-apis/global-datafeeds-apis/documentation-support/symbol-naming-conventions/)
<br>Sample reponse is given below. This response will be in JSON format.
<br>**Response**<br>

```
[{'AVERAGETRADEDPRICE': 24741.52, 'BUYPRICE': 24771.4, 'BUYQTY': 100, 'CLOSE': 24711.25, 'EXCHANGE': 'NFO', 'HIGH': 24794.0, 'INSTRUMENTIDENTIFIER': 'NIFTY-I', 'LASTTRADEPRICE': 24771.4, 'LASTTRADEQTY': 325, 'LASTTRADETIME': 1724230373000, 'LOW': 24685.05, 'OPEN': 24697.7, 'OPENINTEREST': 10891900, 'PREOPEN': False, 'QUOTATIONLOT': 25.0, 'SELLPRICE': 24772.9, 'SELLQTY': 100, 'SERVERTIME': 1724230373000, 'TOTALQTYTRADED': 2167550, 'VALUE': 53628481676.0, 'PRICECHANGE': 60.15, 'PRICECHANGEPERCENTAGE': 0.24, 'OPENINTERESTCHANGE': 119225}, 
{'AVERAGETRADEDPRICE': 50636.84, 'BUYPRICE': 50577.3, 'BUYQTY': 15, 'CLOSE': 50892.2, 'EXCHANGE': 'NFO', 'HIGH': 50890.0, 'INSTRUMENTIDENTIFIER': 'BANKNIFTY-I', 'LASTTRADEPRICE': 50573.45, 'LASTTRADEQTY': 0, 'LASTTRADETIME': 1724230373000, 'LOW': 50463.0, 'OPEN': 50832.0, 'OPENINTEREST': 3052665, 'PREOPEN': False, 'QUOTATIONLOT': 15.0, 'SELLPRICE': 50582.5, 'SELLQTY': 90, 'SERVERTIME': 1724230373000, 'TOTALQTYTRADED': 2234070, 'VALUE': 113126245138.8, 'PRICECHANGE': -318.75, 'PRICECHANGEPERCENTAGE': -0.63, 'OPENINTERESTCHANGE': 280215}, 
{'AVERAGETRADEDPRICE': 23128.74, 'BUYPRICE': 23102.65, 'BUYQTY': 50, 'CLOSE': 23210.5, 'EXCHANGE': 'NFO', 'HIGH': 23199.3, 'INSTRUMENTIDENTIFIER': 'FINNIFTY-I', 'LASTTRADEPRICE': 23100.0, 'LASTTRADEQTY': 0, 'LASTTRADETIME': 1724230372000, 'LOW': 23061.95, 'OPEN': 23157.0, 'OPENINTEREST': 69450, 'PREOPEN': False, 'QUOTATIONLOT': 25.0, 'SELLPRICE': 23107.7, 'SELLQTY': 50, 'SERVERTIME': 1724230372000, 'TOTALQTYTRADED': 48100, 'VALUE': 1112492394.0, 'PRICECHANGE': -110.5, 'PRICECHANGEPERCENTAGE': -0.48, 'OPENINTERESTCHANGE': 8075}] 
```
---
## GetLastQuoteArrayShort:
In this client will receive array of records of lastest 'LastTradePrice' of multiple symbols in short with limited fields/values. In this single call client can request maximum 25 number of symbols. This function will return array of latest record single for each requested symbol. Below is the sample code to get last quote data:

<br>**Syntax:**<br>
```
import gfdl_rest as rs

api= rs.GetLastQuoteArrayShort('<ENDPOINT>', '<ENTER_API_KEY>', xml=False, format_csv=False)
result = api.Get_LastQuoteArrayShort('Exchange','InstrumentIdentifier1’+'InstrumentIdentifier2’,’ isShortIdentifier <Optional>[true]/[false][default=false]’)
)
print(result)
```

<br>**Example**
```
import gfdl_rest as rs

api= rs.GetLastQuoteArrayShort('<ENDPOINT>', '<ENTER_API_KEY>', xml=False, format_csv=False)
result = api.Get_LastQuoteArrayShort('NFO','NIFTY-I+BANKNIFTY-I+FINNIFTY-I')
print(result)
```
	
Client will get array of latest data for 'NIFTY and BANKNIFTY' current contact in response. 'NIFTY-I AND BANKNIFTY-I' is instrumentIdentifier (Symbol) to understand more about the 'Symbol Naming Conventions' check [here.](https://globaldatafeeds.in/global-datafeeds-apis/global-datafeeds-apis/documentation-support/symbol-naming-conventions/)
<br>Sample reponse is given below. This response will be in JSON format.
<br>**Response**<br> 

```
[{'BUYPRICE': 24772.25, 'EXCHANGE': 'NFO', 'INSTRUMENTIDENTIFIER': 'NIFTY-I', 'LASTTRADEPRICE': 24772.4, 'LASTTRADETIME': 1724230596000, 'SELLPRICE': 24775.4}, 
{'BUYPRICE': 50572.0, 'EXCHANGE': 'NFO', 'INSTRUMENTIDENTIFIER': 'BANKNIFTY-I', 'LASTTRADEPRICE': 50576.05, 'LASTTRADETIME': 1724230595000, 'SELLPRICE': 50577.45}, 
{'BUYPRICE': 23098.05, 'EXCHANGE': 'NFO', 'INSTRUMENTIDENTIFIER': 'FINNIFTY-I', 'LASTTRADEPRICE': 23100.0, 'LASTTRADETIME': 1724230596000, 'SELLPRICE': 23101.45}]
 ```
---
## GetLastQuoteArrayShortWithClose:
In this client will receive array of records of lastest 'LastTradePrice' of multiple symbols in short with limited fields/values with Close of Previous Day. In this single call client can request maximum 25 number of symbols. This function will return array of latest record single for each requested symbol. Below is the sample code to get last quote data:
<br><br>**Syntax:**<br>
```
import gfdl_rest as rs

api= rs.GetLastQuoteArrayShortWithClose('<ENDPOINT>', '<ENTER_API_KEY>', xml=False, format_csv=False)
result = api.Get_LastQuoteArrayShortWithClose('Exchange','InstrumentIdentifier1’+'InstrumentIdentifier2’, ’isShortIdentifier <Optional>[true]/[false][default=false]’)
print(result)
```
<br>**Example**
```
import gfdl_rest as rs

api= rs.GetLastQuoteArrayShortWithClose('<ENDPOINT>', '<ENTER_API_KEY>', xml=False, format_csv=False)
result = api.Get_LastQuoteArrayShortWithClose('NFO','NIFTY-I+BANKNIFTY-I+FINNIFTY-I')
print(result)
```
Client will get array of latest data for 'NIFTY and BANKNIFTY' current contact in response. 'NIFTY-I AND BANKNIFTY-I' is instrumentIdentifier (Symbol) to understand more about the 'Symbol Naming Conventions' check [here.](https://globaldatafeeds.in/global-datafeeds-apis/global-datafeeds-apis/documentation-support/symbol-naming-conventions/)
<br>Sample response is given below. This response will be in JSON format.
<br>**Response**<br>

```
[{'BUYPRICE': 24768.0, 'EXCHANGE': 'NFO', 'INSTRUMENTIDENTIFIER': 'NIFTY-I', 'LASTTRADEPRICE': 24768.0, 'LASTTRADETIME': 1724230693000, 'SELLPRICE': 24770.2, 'CLOSE': 24711.25}, 
{'BUYPRICE': 50558.75, 'EXCHANGE': 'NFO', 'INSTRUMENTIDENTIFIER': 'BANKNIFTY-I', 'LASTTRADEPRICE': 50561.05, 'LASTTRADETIME': 1724230694000, 'SELLPRICE': 50564.0, 'CLOSE': 50892.2}, 
{'BUYPRICE': 23093.7, 'EXCHANGE': 'NFO', 'INSTRUMENTIDENTIFIER': 'FINNIFTY-I', 'LASTTRADEPRICE': 23095.0, 'LASTTRADETIME': 1724230694000, 'SELLPRICE': 23098.15, 'CLOSE': 23210.5}]
 ```
---
## GetSnapshot:
In this client will receive snapshots data. This function returns latest snapshot data as per Periodicity & Period values provided. In this single call client can request maximum 25 number of symbols. This function will return array of latest single record for each requested symbol. Below is the sample code to get snapshot data:
<br>**Syntax:**<br>
``` 
import gfdl_rest as rs

api= rs.GetSnapshot('<ENDPOINT>', '<ENTER_API_KEY>', xml=False, format_csv=False)
result = api.Get_Snapshot('Exchange',’Periodicity’,’Period’,'InstrumentIdentifier1’+'InstrumentIdentifier2’, ’ isShortIdentifier <Optional>[true]/[false][default=false]’)
print(result)
```
<br>**Example**
``` 
import gfdl_rest as rs

api= rs.GetSnapshot('<ENDPOINT>', '<ENTER_API_KEY>', xml=False, format_csv=False)
result = api.Get_Snapshot('NFO','Minute','1','NIFTY-I+BANKNIFTY-I+FINNIFTY-I')
print(result)
```  

Client will get array of latest data for 'NIFTY and BANKNIFTY' current contact in response. 'NIFTY-I AND BANKNIFTY-I' is instrumentIdentifier (Symbol) to understand more about the 'Symbol Naming Conventions' check [here.](https://globaldatafeeds.in/global-datafeeds-apis/global-datafeeds-apis/documentation-support/symbol-naming-conventions/)
<br>Sample reponse is given below. This response will be in JSON format.
<br>**Response**<br> 

```
[{'CLOSE': 50571.7, 'EXCHANGE': 'NFO', 'HIGH': 50571.75, 'INSTRUMENTIDENTIFIER': 'FUTIDX_BANKNIFTY_28AUG2024_XX_0', 'TRADEDQTY': 2190, 'LASTTRADETIME': 1724230680000, 'LOW': 50557.7, 'OPEN': 50565.0, 'OPENINTEREST': 3052440},
 {'CLOSE': 23093.35, 'EXCHANGE': 'NFO', 'HIGH': 23095.0, 'INSTRUMENTIDENTIFIER': 'FUTIDX_FINNIFTY_27AUG2024_XX_0', 'TRADEDQTY': 75, 'LASTTRADETIME': 1724230680000, 'LOW': 23093.35, 'OPEN': 23095.0, 'OPENINTEREST': 69475}, 
{'CLOSE': 24769.95, 'EXCHANGE': 'NFO', 'HIGH': 24773.45, 'INSTRUMENTIDENTIFIER': 'FUTIDX_NIFTY_29AUG2024_XX_0', 'TRADEDQTY': 1675, 'LASTTRADETIME': 1724230680000, 'LOW': 24768.0, 'OPEN': 24770.0, 'OPENINTEREST': 10889950}] 
```
---
# Historical data requests

## GetHistory:
This will returns historical data as per the periodicity and Period provided in request. Returned dat will be Tick, Minute candle or EOD. Client will get 2 types of response depend on the request
<br>
- Getbyperiod: This request will return the data between the provided period. Client need to provide From time and To time in this call. Below is the sample code to get history data:
<br><br>**Syntax:**<br>
```
import gfdl_rest as rs

api= rs.GetHistory('<ENDPOINT>', '<ENTER_API_KEY>', xml=False, format_csv=False)
result = api.Get_History('Exchange','InstrumentIdentifier’,’Periodicity’,’Period’,'max <Optional>’,'From <Optional>’,’To <Optional>’, ’ isShortIdentifier <Optional>[true]/[false][default=false]’)
#either use From and To parameter or Max parameter
# From and To = user can select particular timeframe to get history data
#Max = if user selects Max =10, response will get latest 10 records of history data
print(result)
```
<br>**Example**

```
import gfdl_rest as rs

api= rs.GetHistory('<ENDPOINT>', '<ENTER_API_KEY>', xml=False, format_csv=False)
result = api.Get_History('NFO','NIFTY-I','Minute','1','10','1723779900','1723802400')  print(result)
```

Here in this request From and To is a numerical value of UNIX Timestamp like ‘1658138400’ (18-07-2022 15:30:00). This value is expressed as no. of seconds since Epoch time (i.e. 1st January 1970). Also known as Unix Time. Please Visit [Epoch Converter](https://www.epochconverter.com/) to get formulae to convert human readable time to Epoch and vice versa.

As a response to above call client will get all the 1 minute candle records between provided period.
<br>
- Getcaldle: This request will return the data in number of latest candles. Client need to provide number of candles in this call. Below is the sample code to get snapshot data:
<br><br>**Syntax:**<br>
```
import gfdl_rest as rs

api= rs.GetHistory('<ENDPOINT>', '<ENTER_API_KEY>', xml=False, format_csv=False)
result = api.Get_History('Exchange','InstrumentIdentifier’,’Periodicity’,’Period’,'max <Optional>’,'usertTag<optional> ’, 'isShortIdentifier <Optional>[true]/[false][default=false]’)
#either use From and To parameter or Max parameter
# From and To = user can select particular timeframe to get history data
#Max = if user selects Max =10, response will get latest 10 records of history data

print(result)
```
<br>**Example**
```
import gfdl_rest as rs

api= rs.GetHistory('<ENDPOINT>', '<ENTER_API_KEY>', xml=False, format_csv=False)
result = api.Get_History('NFO','NIFTY-I','TICK','1','10','surendran') 
print(result)
```

Here in this request From and To is a numerical value of UNIX Timestamp like ‘1658138400’ (18-07-2022 15:30:00). This value is expressed as no. of seconds since Epoch time (i.e. 1st January 1970). Also known as Unix Time. Please Visit [Epoch Converter](https://www.epochconverter.com/) to get formulae to convert human readable time to Epoch and vice versa.
As a response to above call, client will get all 10 number of 1 minute candle records. 

<br>Sample response for both the calls is given below. This response will be in JSON format.
<br><br>**Response**<br>
*OHLC Format:*
``` 
{'USERTAG': surendran, 'OHLC': [{'CLOSE': 24757.3, 'HIGH': 24794, 'LASTTRADETIME': 1724243400000, 'LOW': 24685.05, 'OPEN': 24697.7, 'OPENINTEREST': 10906875, 'QUOTATIONLOT': 25, 'TRADEDQTY': 2223325}, {'CLOSE': 24711.25, 'HIGH': 24765, 'LASTTRADETIME': 1724157000000, 'LOW': 24624.25, 'OPEN': 24639.95, 'OPENINTEREST': 10772675, 'QUOTATIONLOT': 25, 'TRADEDQTY': 3759150}, {'CLOSE': 24595.75, 'HIGH': 24661.75, 'LASTTRADETIME': 1724070600000, 'LOW': 24533, 'OPEN': 24640.2, 'OPENINTEREST': 10966725, 'QUOTATIONLOT': 25, 'TRADEDQTY': 3798325}, {'CLOSE': 24585.5, 'HIGH': 24606.15, 'LASTTRADETIME': 1723811400000, 'LOW': 24233, 'OPEN': 24322.35, 'OPENINTEREST': 11295600, 'QUOTATIONLOT': 25, 'TRADEDQTY': 9540625}, {'CLOSE': 24174.65, 'HIGH': 24228.65, 'LASTTRADETIME': 1723638600000, 'LOW': 24122.15, 'OPEN': 24199.95, 'OPENINTEREST': 11531500, 'QUOTATIONLOT': 25, 'TRADEDQTY': 4508525}, {'CLOSE': 24161, 'HIGH': 24390, 'LASTTRADETIME': 1723552200000, 'LOW': 24125.35, 'OPEN': 24349.95, 'OPENINTEREST': 11998675, 'QUOTATIONLOT': 25, 'TRADEDQTY': 5699100}, {'CLOSE': 24356.8, 'HIGH': 24530, 'LASTTRADETIME': 1723465800000, 'LOW': 24272, 'OPEN': 24355, 'OPENINTEREST': 11704100, 'QUOTATIONLOT': 25, 'TRADEDQTY': 6599150}, {'CLOSE': 24401.5, 'HIGH': 24444, 'LASTTRADETIME': 1723206600000, 'LOW': 24316.4, 'OPEN': 24350.2, 'OPENINTEREST': 11709075, 'QUOTATIONLOT': 25, 'TRADEDQTY': 6500325}, {'CLOSE': 24136.55, 'HIGH': 24357.75, 'LASTTRADETIME': 1723120200000, 'LOW': 24111, 'OPEN': 24299, 'OPENINTEREST': 12343075, 'QUOTATIONLOT': 25, 'TRADEDQTY': 9407300}, {'CLOSE': 24366.45, 'HIGH': 24397.95, 'LASTTRADETIME': 1723033800000, 'LOW': 24208.2, 'OPEN': 24310.2, 'OPENINTEREST': 12736375, 'QUOTATIONLOT': 25, 'TRADEDQTY': 8281950}]} 
```
  
*TICK Format:*
```
{'USERTAG': surendran, 'TICK': [{'BUYPRICE': 24753.8, 'BUYQTY': 50, 'LASTTRADEPRICE': 24753.15, 'LASTTRADETIME': 1724231023000, 'OPENINTEREST': 10906875, 'QUOTATIONLOT': 25, 'SELLPRICE': 24758, 'SELLQTY': 25, 'TRADEDQTY': 625}, {'BUYPRICE': 24753.05, 'BUYQTY': 125, 'LASTTRADEPRICE': 24754.35, 'LASTTRADETIME': 1724231021000, 'OPENINTEREST': 10906875, 'QUOTATIONLOT': 25, 'SELLPRICE': 24755, 'SELLQTY': 25, 'TRADEDQTY': 100}, {'BUYPRICE': 24754.35, 'BUYQTY': 25, 'LASTTRADEPRICE': 24755.05, 'LASTTRADETIME': 1724231019000, 'OPENINTEREST': 10906875, 'QUOTATIONLOT': 25, 'SELLPRICE': 24756.8, 'SELLQTY': 100, 'TRADEDQTY': 50}, {'BUYPRICE': 24754, 'BUYQTY': 25, 'LASTTRADEPRICE': 24754, 'LASTTRADETIME': 1724231018000, 'OPENINTEREST': 10906875, 'QUOTATIONLOT': 25, 'SELLPRICE': 24755.05, 'SELLQTY': 25, 'TRADEDQTY': 100}, {'BUYPRICE': 24754, 'BUYQTY': 100, 'LASTTRADEPRICE': 24755, 'LASTTRADETIME': 1724231016000, 'OPENINTEREST': 10906875, 'QUOTATIONLOT': 25, 'SELLPRICE': 24755.05, 'SELLQTY': 25, 'TRADEDQTY': 0}, {'BUYPRICE': 24754, 'BUYQTY': 100, 'LASTTRADEPRICE': 24755, 'LASTTRADETIME': 1724231015000, 'OPENINTEREST': 10906875, 'QUOTATIONLOT': 25, 'SELLPRICE': 24757.7, 'SELLQTY': 100, 'TRADEDQTY': 550}, {'BUYPRICE': 24755.65, 'BUYQTY': 25, 'LASTTRADEPRICE': 24755.45, 'LASTTRADETIME': 1724231013000, 'OPENINTEREST': 10906875, 'QUOTATIONLOT': 25, 'SELLPRICE': 24758, 'SELLQTY': 25, 'TRADEDQTY': 125}, {'BUYPRICE': 24755.45, 'BUYQTY': 25, 'LASTTRADEPRICE': 24755.05, 'LASTTRADETIME': 1724231012000, 'OPENINTEREST': 10906875, 'QUOTATIONLOT': 25, 'SELLPRICE': 24758, 'SELLQTY': 25, 'TRADEDQTY': 125}, {'BUYPRICE': 24755.15, 'BUYQTY': 25, 'LASTTRADEPRICE': 24755.05, 'LASTTRADETIME': 1724231010000, 'OPENINTEREST': 10906875, 'QUOTATIONLOT': 25, 'SELLPRICE': 24758.9, 'SELLQTY': 25, 'TRADEDQTY': 0}, {'BUYPRICE': 24755.15, 'BUYQTY': 25, 'LASTTRADEPRICE': 24755.05, 'LASTTRADETIME': 1724231008000, 'OPENINTEREST': 10906875, 'QUOTATIONLOT': 25, 'SELLPRICE': 24759, 'SELLQTY': 175, 'TRADEDQTY': 25}]} 
```
---
## GetHistoryAfterMarket:
This function returns historical data in the form of Tick, Minute or EOD as per request till previous working day. This function is useful for the users / service providers who want to provide services like back-testing as they do not need live / current day’s data. This should also save their API costs. To receive current day’s historical data via this function, you will need to send request after market is closed. Requests for this function are same as **History.**

---
## GetExchanges:
Client will get the list of available exchanges configured for API Key. Below is the sample code to get exchanges data:
<br><br>**Syntax:**<br>
```
import gfdl_rest as rs

api= rs.GetExchanges('<ENDPOINT>', '<ENTER_API_KEY>', xml=False, format_csv=False)
result = api.Get_Exchanges()
print(result)
```
 <br>**Example**
```
import gfdl_rest as rs

api= rs.GetExchanges('<ENDPOINT>', '<ENTER_API_KEY>', xml=False, format_csv=False)
result = api.Get_Exchanges()
print(result)
```
Sample reponse is given below. This response will be in JSON format.
<br>**Response**<br>
```
{'EXCHANGES': ['BFO', 'BSE', 'BSE_DEBT', 'BSE_IDX', 'CDS', 'MCX', 'NFO', 'NSE', 'NSE_IDX']} 
```
---
## GetInstrumentsOnSearch:
This function will returns array of max. 20 instruments by selected exchange and ‘search string’. Below is the sample code to get snapshot data:
<br><br>**Syntax:**<br>
```
import gfdl_rest as rs

api= rs.GetInstrumentsOnSearch('<ENDPOINT>', '<ENTER_API_KEY>', xml=False, format_csv=False)
result = api.Get_InstrumentsOnSearch('Exchange','Search’,’ InstrumentType <Optional>’,’Optiontype <Optional> ’,’ExpiryDate <Optional>,’StrikePrice <Optional>’,’OnlyActive[true/false] <Optional>’)
 print(result)
```
<br>**Example**
```
import gfdl_rest as rs

api= rs.GetInstrumentsOnSearch('<ENDPOINT>', '<ENTER_API_KEY>', xml=False, format_csv=False)
result = api.Get_InstrumentsOnSearch('NFO','NIFTY','OPTIDX','CE','22AUG2024') 
 print(result)
```

As a response to above call, client will get records with details for 20 instruments under provided exchange and 'Search string'. <br> Sample response is given below. This response will be in JSON format.
<br>**Response**<br>
```
{'INSTRUMENTS': [{'EXCHANGE': 'NFO', 'EXPIRY': '22Aug2024', 'IDENTIFIER': 'OPTIDX_NIFTY_22AUG2024_CE_27800', 'INDEXNAME': '', 'NAME': 'OPTIDX', 'OPTIONTYPE': 'CE', 'PRICEQUOTATIONUNIT': '', 'PRODUCT': 'NIFTY', 'PRODUCTMONTH': '22Aug2024', 'STRIKEPRICE': 27800.0, 'TRADESYMBOL': 'NIFTY22AUG2427800CE', 'UNDERLYINGASSET': '', 'UNDERLYINGASSETEXPIRY': '', 'QUOTATIONLOT': 25.0, 'DESCRIPTION': ''}, {'EXCHANGE': 'NFO', 'EXPIRY': '22Aug2024', 'IDENTIFIER': 'OPTIDX_NIFTY_22AUG2024_CE_22550', 'INDEXNAME': '', 'NAME': 'OPTIDX', 'OPTIONTYPE': 'CE', 'PRICEQUOTATIONUNIT': '', 'PRODUCT': 'NIFTY', 'PRODUCTMONTH': '22Aug2024', 'STRIKEPRICE': 22550.0, 'TRADESYMBOL': 'NIFTY22AUG2422550CE', 'UNDERLYINGASSET': '', 'UNDERLYINGASSETEXPIRY': '', 'QUOTATIONLOT': 25.0, 'DESCRIPTION': ''}, .....................................{'EXCHANGE': 'NFO', 'EXPIRY': '22Aug2024', 'IDENTIFIER': 'OPTIDX_NIFTY_22AUG2024_CE_22100', 'INDEXNAME': '', 'NAME': 'OPTIDX', 'OPTIONTYPE': 'CE', 'PRICEQUOTATIONUNIT': '', 'PRODUCT': 'NIFTY', 'PRODUCTMONTH': '22Aug2024', 'STRIKEPRICE': 22100.0, 'TRADESYMBOL': 'NIFTY22AUG2422100CE', 'UNDERLYINGASSET': '', 'UNDERLYINGASSETEXPIRY': '', 'QUOTATIONLOT': 25.0, 'DESCRIPTION': ''}, {'EXCHANGE': 'NFO', 'EXPIRY': '22Aug2024', 'IDENTIFIER': 'OPTIDX_NIFTY_22AUG2024_CE_22400', 'INDEXNAME': '', 'NAME': 'OPTIDX', 'OPTIONTYPE': 'CE', 'PRICEQUOTATIONUNIT': '', 'PRODUCT': 'NIFTY', 'PRODUCTMONTH': '22Aug2024', 'STRIKEPRICE': 22400.0, 'TRADESYMBOL': 'NIFTY22AUG2422400CE', 'UNDERLYINGASSET': '', 'UNDERLYINGASSETEXPIRY': '', 'QUOTATIONLOT': 25.0, 'DESCRIPTION': ''}]}
```
--- 
## GetInstruments:
This function will returns array of instruments by selected exchange. Below is the sample code to get snapshot data:
<br><br>**Syntax:**<br>
```
import gfdl_rest as rs

api= rs.GetInstruments('<ENDPOINT>', '<ENTER_API_KEY>', xml=False, format_csv=False)
result = api.Get_Instruments('Exchange','Search’,’ InstrumentType <Optional>’,’Optiontype <Optional> ’,’ExpiryDate <Optional>,’StrikePrice <Optional>’,’OnlyActive[true/false] <Optional>’)
print(result)
```
<br>**Example**
```
import gfdl_rest as rs

api= rs.GetInstruments('<ENDPOINT>', '<ENTER_API_KEY>', xml=False, format_csv=False)
result = api.Get_Instruments('NFO','NIFTY','OPTIDX','CE','29AUG2024')
print(result)
```  

As a response to above call, client will get records with details for all the instruments under provided exchange. <br> Sample reponse is given below. This response will be in JSON format.
<br>**Response**<br>
```
{'INSTRUMENTS': [{'EXCHANGE': 'NFO', 'EXPIRY': '29Aug2024', 'IDENTIFIER': 'OPTIDX_NIFTY_29AUG2024_CE_18550', 'INDEXNAME': '', 'NAME': 'OPTIDX', 'OPTIONTYPE': 'CE', 'PRICEQUOTATIONUNIT': '', 'PRODUCT': 'NIFTY', 'PRODUCTMONTH': '29Aug2024', 'STRIKEPRICE': 18550.0, 'TRADESYMBOL': 'NIFTY29AUG2418550CE', 'UNDERLYINGASSET': '', 'UNDERLYINGASSETEXPIRY': '', 'QUOTATIONLOT': 25.0, 'DESCRIPTION': ''}, {'EXCHANGE': 'NFO', 'EXPIRY': '29Aug2024', 'IDENTIFIER': 'OPTIDX_NIFTY_29AUG2024_CE_18600', 'INDEXNAME': '', 'NAME': 'OPTIDX', 'OPTIONTYPE': 'CE', 'PRICEQUOTATIONUNIT': '', 'PRODUCT': 'NIFTY', 'PRODUCTMONTH': '29Aug2024', 'STRIKEPRICE': 18600.0, 'TRADESYMBOL': 'NIFTY29AUG2418600CE', 'UNDERLYINGASSET': '', 'UNDERLYINGASSETEXPIRY': '', 'QUOTATIONLOT': 25.0, 'DESCRIPTION': ''}, ................................................. {'EXCHANGE': 'NFO', 'EXPIRY': '29Aug2024', 'IDENTIFIER': 'OPTIDX_NIFTY_29AUG2024_CE_29250', 'INDEXNAME': '', 'NAME': 'OPTIDX', 'OPTIONTYPE': 'CE', 'PRICEQUOTATIONUNIT': '', 'PRODUCT': 'NIFTY', 'PRODUCTMONTH': '29Aug2024', 'STRIKEPRICE': 29250.0, 'TRADESYMBOL': 'NIFTY29AUG2429250CE', 'UNDERLYINGASSET': '', 'UNDERLYINGASSETEXPIRY': '', 'QUOTATIONLOT': 25.0, 'DESCRIPTION': ''}]}
```
---  
## GetInstrumentTypes:
This function will returns list of Instrument Types (e.g. FUTIDX, FUTSTK, etc.) under provided exchange. Below is the sample code to get instrument types:
<br><br>**Syntax:**<br>
```
import gfdl_rest as rs

api= rs.GetInstrumentTypes('<ENDPOINT>', '<ENTER_API_KEY>', xml=False, format_csv=False)
result = api.Get_InstrumentTypes('Exchange')
print(result)
```
<br>**Example:**
```
import gfdl_rest as rs

api= rs.GetInstrumentTypes('<ENDPOINT>', '<ENTER_API_KEY>', xml=False, format_csv=False)
result = api.Get_InstrumentTypes('NFO')
print(result)
```

As a response to above call, client will get the instrument types under provided exchange. <br>Sample response is given below. This response will be in JSON format.
<br><br>**Response**<br>
```
{'INSTRUMENTTYPES': ['FUTIDX', 'FUTSTK', 'OPTIDX', 'OPTSTK']} 
```
---	  
## GetProducts: 
This function will returns list of Products (e.g. NIFTY, BANKNIFTY, GAIL etc.) under provided exchange. Below is the sample code to get instrument types:
<br><br>**Syntax:**<br>
```
import gfdl_rest as rs

api= rs.GetProducts('<ENDPOINT>', '<ENTER_API_KEY>', xml=False, format_csv=False)
result = api.Get_Products('Exchange')
print(result)
```
<br>**Example**
```
import gfdl_rest as rs

api= rs.GetProducts('<ENDPOINT>', '<ENTER_API_KEY>', xml=False, format_csv=False)
result = api.Get_Products('NFO')
print(result)
```
	  
As a response to above call, client will get the list of products under provided exchange. <br>Sample response is given below. This response will be in JSON format.
<br><br>**Response**<br>
```
{'PRODUCTS': ['011NSETEST', '021NSETEST', '031NSETEST', '041NSETEST', '051NSETEST', '061NSETEST', '071NSETEST', '081NSETEST', '091NSETEST', '101NSETEST', '111NSETEST', '121NSETEST', '131NSETEST', '141NSETEST', '151NSETEST', '161NSETEST', '171NSETEST', '181NSETEST', 'AARTIIND', 'ABB', 'ABBOTINDIA', 'ABCAPITAL', 'ABFRL', 'ACC', 'ADANIENT', 'ADANIPORTS', 'ALKEM', 'AMBUJACEM', 'APOLLOHOSP', 'APOLLOTYRE', 'ASHOKLEY', 'ASIANPAINT', 'ASTRAL', 'ATUL', 'AUBANK', 'AUROPHARMA', 'AXISBANK', 'BAJAJ-AUTO', 'BAJAJFINSV', 'BAJFINANCE', 'BALKRISIND', 'BALRAMCHIN', 'BANDHANBNK', 'BANKBARODA', 'BANKNIFTY', 'COLPAL', 'CONCOR', 'COROMANDEL', 'CROMPTON', 'CUB', 'CUMMINSIND', 'DABUR', 'DALBHARAT', 'DEEPAKNTR', 'DIVISLAB', 'DIXON', 'DLF', 'DRREDDY', 'EICHERMOT', 'ESCORTS', 'EXIDEIND', 'FEDERALBNK', 'FINNIFTY', 'GAIL', 'GLENMARK', 'GMRINFRA', 'GNFC', 'GODREJCP', 'GODREJPROP', 'GRANULES', 'GRASIM', 'GUJGASLTD', 'HAL', 'HAVELLS', 'HCLTECH', 'HDFCAMC', 'RELIANCE', 'SAIL', 'SBICARD', 'SBILIFE', 'SBIN', 'SHREECEM', 'SHRIRAMFIN', 'SIEMENS', 'SRF', 'SUNPHARMA', 'SUNTV', 'SYNGENE', 'TATACHEM', 'TATACOMM', 'TATACONSUM', 'TATAMOTORS', 'TATAPOWER', 'TATASTEEL', 'TCS', 'TECHM', 'TITAN', 'TORNTPHARM', 'TRENT', 'TVSMOTOR', 'UBL', 'ULTRACEMCO', 'UNITDSPR', 'UPL', 'VEDL', 'VOLTAS', 'WIPRO', 'ZYDUSLIFE']} 
```

---
## GetExpiryDates:
This function will returns array of Expiry Dates (e.g. 25JUN2020, 30JUL2020, etc.) as per the parameter provided. Below is the sample code to get expiry dates:
<br><br>**Syntax:**<br>
```
import gfdl_rest as rs

api= rs.GetExpiryDates('<ENDPOINT>', '<ENTER_API_KEY>', xml=False, format_csv=False)
result = api.Get_ExpiryDates('Exchange','Product')
print(result)
```
<br>**Example**
```
import gfdl_rest as rs

api= rs.GetExpiryDates('<ENDPOINT>', '<ENTER_API_KEY>', xml=False, format_csv=False)
result = api.Get_ExpiryDates('NFO','NIFTY')
print(result)
```
As a response to above call, client will get the list of expiry dates for provided exchange. <br> Sample reponse is given below. This response will be in JSON format.
<br><br>**Response**<br>
```
{'EXPIRYDATES': ['22AUG2024', '29AUG2024', '05SEP2024', '12SEP2024', '19SEP2024', '26SEP2024', '31OCT2024', '26DEC2024', '27MAR2025', '26JUN2025', '24DEC2025', '25JUN2026', '31DEC2026', '24JUN2027', '30DEC2027', '29JUN2028', '28DEC2028', '28JUN2029']} 
```

---
## GetOptionTypes:
This function will returns list of Option Types (e.g. CE, PE, etc.) as per the parameter provided. Below is the sample code to get expiry dates:
<br><br>**Syntax:**<br>
```
import gfdl_rest as rs

api= rs.GetOptionTypes('<ENDPOINT>', '<ENTER_API_KEY>', xml=False, format_csv=False)
result = api.Get_OptionTypes('Exchange')
print(result)
```
<br>**Example**
```
import gfdl_rest as rs

api= rs.GetOptionTypes('<ENDPOINT>', '<ENTER_API_KEY>', xml=False, format_csv=False)
result = api.Get_OptionTypes('NFO')
print(result)
```
	
As a response to above call, client will get the list of option types for provided exchange. <br>Sample response is given below. This response will be in JSON format.
<br><br>**Response**<br>
``` 
{'OPTIONTYPES': ['FF', 'XX', 'CE', 'PE']} 
```
---  
## GetStrikePrices:
This function will returns list of Strike Prices (e.g. 10000, 11000, 75.5, etc.) as per the provided parameter. Below is the sample code to get expiry dates:
<br><br>**Syntax:**<br>
```
import gfdl_rest as rs

api= rs.GetStrikePrices('<ENDPOINT>', '<ENTER_API_KEY>', xml=False, format_csv=False)
result = api.Get_StrikePrices(‘Exchange’)
 print(result)
```
 <br> **Example**
```
import gfdl_rest as rs

api= rs.GetStrikePrices('<ENDPOINT>', '<ENTER_API_KEY>', xml=False, format_csv=False)
result = api.Get_StrikePrices('NFO')
print(result)
```

As a response to above call, client will get the list of strike prices for provided exchange. <br> Sample reponse is given below. This response will be in JSON format.
<br><br>**Response**<br>
```
{'STRIKEPRICES': ['0', '5200', '5300', '5400', '5500', '5600', '5700', '5800', '5900', '6000', '6100', '6200', '6300', '6400', '6500', '6600', '6700', '6800', '6900', '7000', '7100', '7200', '7300', '7400', '7500', '7600', '7700', '7800', '7900', '8000', '8100', '8200', '8300', '8400', '8500', '8600', '8700', '8800', '8900', '9000', '9100', '9200', '9300', '9400', '9500', '9600', '9700', '9800', '9900', '10000', '10100', '10200', '10300', '10400', '10500', '10600', '10700', '10800', '10900', '11000', '11100', '11200', '11300', '11400', '11500', '11600', '11700', '11800', '11900', '12000', '12100', '12200', '12300', '12400', '12500', '12600', '12700', '12800', '12900', '13000', '13100', '13200', '13300', '13400', '13500', '13600', '13700', '13800', '13900', '14000', '14100', '14200', '14300', '14400', '14500', '14600', '14700', '14800', '15000', '15500', '16000', '16500', '16650', '16700', '16750', '16800', '16850', '16900', '16950', '17000', '17050', '17100', '17150', '17200', '17250', '17300', '17350', '17400', '17450', '17500', '17550', '17600', '17650', '17700', '17750', '17800', '17850', '17900', '17950', '18000', '18050', '18100', '18150', '18200', '18250', '18300', '18350', '18400', '18450', '18500', '18550', '18600', '18650', '18700', '18750', '18800', '18850', '18900', '18950', ………………………………………'25300', '25350', '25400', '25450', '25500', '25550', '25600', '25650', '25700', '25750', '25800', '25850', '25900', '25950', '26000', '26050', '26100', '26150', '26200', '26250', '26300', '26350', '26400', '26450', '26500', '26550', '26600', '26650', '26700', '26750', '26800', '26850', '26900', '26950', '27000', '27050', '27100', '27150', '27200', '27250', '27300', '27350', '27400', '27450', '27500', '27550', '27600', '27650', '27700', '27750', '27800', '27850', '27900', '27950', '28000', '28050', '28100', '28150', '28200', '28250', '28300', '28350', '28400', '28450', '28500', '28550', '28600', '28650', '28700', '28750', '28800', '28850', '28900', '28950', '29000', '29050', '29100', '29150', '29200', '29250', '29300', '29350', '29400', '29450', '29500', '29550', '29600', '29650', '29700', '29750', '29800', '29850', '29900', '29950', '30000', '30050', '30100', '30150', '30200', '30250', '31000', '32000', '33000', '34000', '35000', '36000', '37000', '38000', '39000', '40000']}
 ```

---  

## GetServerInfo:
This function will returns information about server where connection is made. Below is the sample code to get ServerInfo:
<br><br>**Syntax:**<br>
```
import gfdl_rest as rs

api= rs.GetServerInfo('<ENDPOINT>', '<ENTER_API_KEY>', xml=False, format_csv=False)
result = api.Get_ServerInfo()
print(result)
```
<br>**Example**
```
import gfdl_rest as rs

api= rs.GetServerInfo('<ENDPOINT>', '<ENTER_API_KEY>', xml=False, format_csv=False)
result = api.Get_ServerInfo()
print(result)
```  

As a response to above call, client will get the serverID where client is connected. <br>Sample response is given below. This response will be in JSON format.
<br><br>**Response**<br>
```
{'ServerID': '8040-A7'}
 ```
---  
## GetLimitation:
This function will returns user account information (e.g. which functions are allowed, Exchanges allowed, symbol limit, etc.) Below is the sample code to get limitation:
<br><br>**Syntax:**<br>
```
import gfdl_rest as rs

api= rs.GetLimitation('<ENDPOINT>', '<ENTER_API_KEY>', xml=False, format_csv=False)
result = api.Get_Limitation()
print(result)
```
<br>**Example**
```
import gfdl_rest as rs

api= rs.GetLimitation('<ENDPOINT>', '<ENTER_API_KEY>', xml=False, format_csv=False)
result = api.Get_Limitation()
print(result)
```
As a response to above call, client will get the serverID where client is connected. <br>Sample response is given below. This response will be in JSON format.
<br><br>**Response**<br>
```
{'AllowedBandwidthPerHour': -1.0, 'AllowedCallsPerHour': -1, 'AllowedCallsPerMonth': -1, 'AllowedBandwidthPerMonth': -1.0, 'ExpirationDate': 1727720999000, 'Enabled': True, 'AllowedExchanges': [{'AllowedInstruments': -1, 'UsedInstrumentsInThisSession': None, 'DataDelay': 0, 'ExchangeName': 'BFO'}, {'AllowedInstruments': -1, 'UsedInstrumentsInThisSession': None, 'DataDelay': 0, 'ExchangeName': 'BSE'}, {'AllowedInstruments': -1, 'UsedInstrumentsInThisSession': None, 'DataDelay': 0, 'ExchangeName': 'BSE_DEBT'}, {'AllowedInstruments': -1, 'UsedInstrumentsInThisSession': None, 'DataDelay': 0, 'ExchangeName': 'BSE_IDX'}, {'AllowedInstruments': -1, 'UsedInstrumentsInThisSession': None, 'DataDelay': 0, 'ExchangeName': 'CDS'}, {'AllowedInstruments': -1, 'UsedInstrumentsInThisSession': None, 'DataDelay': 0, 'ExchangeName': 'MCX'}, {'AllowedInstruments': -1, 'UsedInstrumentsInThisSession': None, 'DataDelay': 0, 'ExchangeName': 'NFO'}, {'AllowedInstruments': -1, 'UsedInstrumentsInThisSession': None, 'DataDelay': 0, 'ExchangeName': 'NSE'}, {'AllowedInstruments': -1, 'UsedInstrumentsInThisSession': None, 'DataDelay': 0, 'ExchangeName': 'NSE_IDX'}], 'AllowedFunctions': [{'FunctionName': 'GetExchangeMessages', 'IsEnabled': True}, {'FunctionName': 'GetExchangeSnapshot', 'IsEnabled': True}, {'FunctionName': 'GetExchangeSnapshotAfterMarket', 'IsEnabled': True}, {'FunctionName': 'GetHistory', 'IsEnabled': True}, {'FunctionName': 'GetHistoryGreeks', 'IsEnabled': True}, {'FunctionName': 'GetLastQuote', 'IsEnabled': True}, {'FunctionName': 'GetLastQuoteArray', 'IsEnabled': True}, {'FunctionName': 'GetLastQuoteArrayOptionGreeks', 'IsEnabled': True}, {'FunctionName': 'GetLastQuoteArrayShort', 'IsEnabled': True}, {'FunctionName': 'GetLastQuoteOptionChain', 'IsEnabled': True}, {'FunctionName': 'GetLastQuoteOptionChainWithGreeks', 'IsEnabled': True}, {'FunctionName': 'GetLastQuoteOptionGreeks', 'IsEnabled': True}, {'FunctionName': 'GetLastQuoteShort', 'IsEnabled': True}, {'FunctionName': 'GetMarketMessages', 'IsEnabled': True}, {'FunctionName': 'GetSnapshot', 'IsEnabled': True}, {'FunctionName': 'GetTopGainersLosers', 'IsEnabled': True}], 'HistoryLimitation': {'TickEnabled': True, 'DayEnabled': True, 'WeekEnabled': True, 'MonthEnabled': True, 'MaxEOD': 100000, 'MaxIntraday': 44, 'MaxTicks': 7, 'Hour_2Enabled': True, 'Hour_3Enabled': True, 'Hour_4Enabled': True, 'Hour_6Enabled': True, 'Hour_8Enabled': True, 'Hour_12Enabled': True, 'Minute_3Enabled': True, 'Minute_4Enabled': True, 'Minute_6Enabled': True, 'Minute_12Enabled': True, 'Minute_20Enabled': True, 'OnlyAfterMarket': False, 'Minute_1Enabled': True, 'Minute_2Enabled': True, 'Minute_5Enabled': True, 'Minute_10Enabled': True, 'Minute_15Enabled': True, 'Minute_30Enabled': True, 'Hour_1Enabled': True}, 'SubscribeSnapshotLimitation': None, 'GetSnapshotLimitation': None, 'GetExchangeSnapshotLimitation': {'DayEnabled': True, 'Minute_1Enabled': True, 'Minute_2Enabled': True, 'Minute_5Enabled': True, 'Minute_10Enabled': True, 'Minute_15Enabled': True, 'Minute_30Enabled': True, 'Hour_1Enabled': True}, 'GetExchangeSnapshotInstrumentTypeLimitation': None} 
```
---
## GetMarketMessages:
This function will returns array of last market messages related to selected exchange. Below is the sample code to get limitation:
<br><br>**Syntax:**<br>
```
import gfdl_rest as rs

api= rs.GetMarketMessages('<ENDPOINT>', '<ENTER_API_KEY>', xml=False, format_csv=False)
result = api.Get_MarketMessages('Exchange')
print(result)
```  
<br>**Example**
```
import gfdl_rest as rs

api= rs.GetMarketMessages('<ENDPOINT>', '<ENTER_API_KEY>', xml=False, format_csv=False)
result = api.Get_MarketMessages('NFO')
print(result)
```  

As a response to above call, client will get the market messages. <br>Sample response is given below. This response will be in JSON format.
<br><br>**Response**<br>
```
{'EXCHANGE': 'NFO', 'MESSAGES': [{'SESSIONID': 0, 'MARKETTYPE': 'Normal Market Open', 'SERVERTIME': 1724211900000}]} ```
---  
## GetExchangeMessages:
This function will returns array of last exchange messages related to selected exchange. Below is the sample code to get limitation:
<br><br>**Syntax:**<br>
```
import gfdl_rest as rs

api= rs.GetExchangeMessages('<ENDPOINT>', '<ENTER_API_KEY>', xml=False, format_csv=False)
result = api.Get_Exchange_Messages(‘Exchange’)
print(result)
```
**Example**
```
import gfdl_rest as rs

api= rs.GetExchangeMessages('<ENDPOINT>', '<ENTER_API_KEY>', xml=False, format_csv=False)
result = api.Get_Exchange_Messages('NFO')
print(result)
```

As a response to above call, client will get the market messages. <br> Sample response is given below. This response will be in JSON format.
<br><br>**Response**<br>
```
{'EXCHANGE': 'NFO', 'MESSAGES': []} 
```
---
## GetLastQuoteOptionChain:
This function will returns LastTradePrice of entire OptionChain of requested underlying. Below is the sample code to get Last Quote Option Chain:
<br><br>**Syntax:**<br>
```
import gfdl_rest as rs

api= rs.GetLastQuoteOptionChain('<ENDPOINT>', '<ENTER_API_KEY>', xml=False, format_csv=False)
result = api.Get_LastQuoteOptionChain(‘Exchange’, ‘Product’,'ExpiryDate <Optional>','OptionType <Optional>’, ‘StrikePrice <Optional>')
print(result)
```
<br>**Example**
```
import gfdl_rest as rs

api= rs.GetLastQuoteOptionChain('<ENDPOINT>', '<ENTER_API_KEY>', xml=False, format_csv=False)
result = api.Get_LastQuoteOptionChain('NFO','NIFTY','22AUG2024','CE')
print(result)
```
<br>**Response**<br>
As a response to above call, client will get LastTradePrice of entire OptionChain. Sample reponse in JSON format can be downloaded from [here.](https://globaldatafeeds.in/resources/GetLastQuoteOptionChainResponse_JSON.zip)

---
## GetExchangeSnapshot:
This function will return entire Exchange Snapshot as per Period & Periodicity.Below is the sample code to get Last Quote Option Chain:
<br><br>**Syntax:**<br>
```
import gfdl_rest as rs

api= rs.GetExchangeSnapshot('<ENDPOINT>', '<ENTER_API_KEY>', xml=False, format_csv=False)
result = api.Get_ExchangeSnapshot(‘Exchange’,' Periodicity',' Period',’InstrumentType <Optional>’,’From <Optional>’,’To  <Optional>’,’NonTraded [true/false]<Optional>’)
print(result)
```
<br>**Example**
```
import gfdl_rest as rs

api= rs.GetExchangeSnapshot('<ENDPOINT>', '<ENTER_API_KEY>', xml=False, format_csv=False)
result = api.Get_ExchangeSnapshot('NFO','Minute','1')
print(result)
```  
<br>**Response**<br>

As a response to above call, client will get entire Exchange Snapshot as per Period & Periodicity. Sample response of 1 minute ExchangeSnapshot in JSON format can be downloaded from [here.](https://globaldatafeeds.in/resources/GetExchangeSnapshot_1Min_JSON.zip)
---
## GetLastQuoteOptionGreeks:
This function will return Last Traded Option Greek values of Single Symbol. Below is the sample code to get this data:
<br><br>**Syntax:**<br>
```
import gfdl_rest as rs

api= rs.GetLastQuoteOptionGreeks('<ENDPOINT>', '<ENTER_API_KEY>', xml=False, format_csv=False)
result = api.Get_LastQuoteOptionGreeks('Exchange','Token')
print(result)
```
<br>**Example**
```
import gfdl_rest as rs

api= rs.GetLastQuoteOptionGreeks('<ENDPOINT>', '<ENTER_API_KEY>', xml=False, format_csv=False)
result = api.Get_LastQuoteOptionGreeks('NFO','57660')
print(result)
```  
<br>**Response**<br>

```
{ “AVERAGETRADEDPRICE”: 871.68, “BUYPRICE”: 870.1, “BUYQTY”: 1, “CLOSE”: 870.9, “EXCHANGE”: “MCX”, “HIGH”: 875, “INSTRUMENTIDENTIFIER”: “XXX_MCXSCHANADLH_25Jun2015_XX_X”, “LASTTRADEPRICE”: 875, “LASTTRADEQTY”: 2, “LASTTRADETIME”: 1391863200, “LOW”: 868.1, “OPEN”: 871.2, “OPENINTEREST”: 221, “PREOPEN”: false, “QUOTATIONLOT”: 100, “SELLPRICE”: 874, “SELLQTY”: 1, “SERVERTIME”: 1391821719, “TOTALQTYTRADED”: 17, “VALUE”: 1481850}
```
Token number can be get by using **GetInstruments** or **GetInstrumentsOnSearch** request. How to use these funcation can be find [here] 
(https://globaldatafeeds.in/global-datafeeds-apis/global-datafeeds-apis/rest-api-documentation/function-getinstruments/).

---
## GetLastQuoteArrayOptionGreeks:
This function will returns Last Traded Option Greek values of multiple Symbols – max 25 in single call. Below is the sample code to get this data:
<br><br>**Syntax:**<br>
```
import gfdl_rest as rs

api= rs.GetLastQuoteArrayOptionGreeks('<ENDPOINT>', '<ENTER_API_KEY>', xml=False, format_csv=False)
result = api.Get_LastQuoteArrayOptionGreeks('Exchange','Token1+Token2+Token3’)
print(result)
```
<br>**Example**
```
import gfdl_rest as rs

api= rs.GetLastQuoteArrayOptionGreeks('<ENDPOINT>', '<ENTER_API_KEY>', xml=False, format_csv=False)
result = api.Get_LastQuoteArrayOptionGreeks('NFO','57660+57661+57662')
print(result)
```  
<br>**Response**<br>

```
[{ “EXCHANGE”: “NFO”, “TOKEN”: “39489”, “TIMESTAMP”: 1625738399000, “IV”: 1.46, “DELTA”: 1, “THETA”: -16.66, “VEGA”: 0, “GAMMA”: 0, “IVVWAP”: 0.12, “VANNA”: -2666.33, “CHARM”: 57226592, “SPEED”: 0, “ZOMMA”: 0, “COLOR”: 4.99, “VOLGA”: 50545.55, “VETA”: 1154302720, “THETAGAMMARATIO”: -719606.5, “THETAVEGARATIO”: -2146264.5, “DTR”: -0.06 }, { “EXCHANGE”: “NFO”, “TOKEN”: “39487”, “TIMESTAMP”: 1625738395000, “IV”: 3.16, “DELTA”: 0.98, “THETA”: -4821.25, “VEGA”: 0.01, “GAMMA”: 0, “IVVWAP”: 0.16, “VANNA”: -1.78, “CHARM”: 12360.09, “SPEED”: 0, “ZOMMA”: 0, “COLOR”: 9.14, “VOLGA”: 43.89, “VETA”: 382011.25, “THETAGAMMARATIO”: -3384442, “THETAVEGARATIO”: -693573.19, “DTR”: 0 }]
```
Token number can be get by using **GetInstruments** or **GetInstrumentsOnSearch** request. How to use these funcation can be find [here](https://globaldatafeeds.in/global-datafeeds-apis/global-datafeeds-apis/rest-api-documentation/function-getinstruments/).

---
## GetLastQuoteOptionGreeksChain:
This function will returns Returns Last Traded Option Greek values of entire OptionChain of requested underlying. Below is the sample code to get this data:
<br><br>**Syntax:**<br>
```
import gfdl_rest as rs

api= rs.GetLastQuoteOptionGreeksChain('<ENDPOINT>', '<ENTER_API_KEY>', xml=False, format_csv=False)
result = api.Get_LastQuoteOptionGreeksChain(‘Exchange’,' Product ','ExpiryDate <Optional>','OptionType <Optional>',’StrikePrice <Optional>’)
print(result)
```
<br>**Example**
```
import gfdl_rest as rs

api= rs.GetLastQuoteOptionGreeksChain('<ENDPOINT>', '<ENTER_API_KEY>', xml=False, format_csv=False)
result = api.Get_LastQuoteOptionGreeksChain('NFO','NIFTY','22AUG2024','CE')
print(result)
```  
<br>**Response**<br>

As a response to above call, client will get Last Traded Option Greek values of entire OptionChain. Sample reponse in JSON format can be downloaded from [here.](https://globaldatafeeds.in/resources/OptionGreeksChainWithQuoteResponse_JSON.zip)

---
---
## GetHistoryGreeks:
This function will returns Returns Last Traded History of Greeks values of entire InstrumentIdentifier of requested underlying. Below is the sample code to get this data:
<br><br>**Syntax:**<br>
```
import gfdl_rest as rs

api= rs.GetHistoryGreeks('<ENDPOINT>', '<ENTER_API_KEY>', xml=False, format_csv=False)
result = api.GetHistory_Greeks(‘Exchange’,' InstrumentIdentifier ','isShortIdentifier <Optional>','Max <optional>',’From <Optional>’,’To  <Optional>’)
print(result)
```
<br>**Example**
```
import gfdl_rest as rs

api= rs.GetHistoryGreeks('<ENDPOINT>', '<ENTER_API_KEY>', xml=False, format_csv=False)
result = api.GetHistory_Greeks('NFO','NIFTY05SEP2425000CE','true','10')
print(result)
```  
<br>**Response**<br>
```  
<OptionGreeksHistory xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<SID>SID: .1 Q:1</SID>
<Value Token="38687" IV="0.12" Delta="0.85" Theta="-9.98" Vega="5.83" Gamma="0" IVVwap="0.12" Vanna="-0.02" Charm="0.04" Speed="-0" Zomma="0" Color="-0" Volga="0.47" Veta="-1.79" ThetaGammaRatio="-13579.67" ThetaVegaRatio="-1.71" DTR="-0.09" Timestamp="09-02-2024 11:34:33"/>
<Value Token="38687" IV="0.12" Delta="0.85" Theta="-9.98" Vega="5.82" Gamma="0" IVVwap="0.12" Vanna="-0.02" Charm="0.04" Speed="-0" Zomma="0" Color="-0" Volga="0.47" Veta="-1.79" ThetaGammaRatio="-13590.36" ThetaVegaRatio="-1.71" DTR="-0.09" Timestamp="09-02-2024 11:34:30"/>
<Value Token="38687" IV="0.12" Delta="0.85" Theta="-9.77" Vega="5.76" Gamma="0" IVVwap="0.12" Vanna="-0.02" Charm="0.04" Speed="-0" Zomma="0" Color="-0" Volga="0.48" Veta="-1.79" ThetaGammaRatio="-13305.99" ThetaVegaRatio="-1.7" DTR="-0.09" Timestamp="09-02-2024 11:34:29"/>
<Value Token="38687" IV="0.12" Delta="0.85" Theta="-9.82" Vega="5.78" Gamma="0" IVVwap="0.12" Vanna="-0.02" Charm="0.04" Speed="-0" Zomma="0" Color="-0" Volga="0.48" Veta="-1.79" ThetaGammaRatio="-13338.52" ThetaVegaRatio="-1.7" DTR="-0.09" Timestamp="09-02-2024 11:34:25"/>
<Value Token="38687" IV="0.12" Delta="0.85" Theta="-9.91" Vega="5.8" Gamma="0" IVVwap="0.12" Vanna="-0.02" Charm="0.04" Speed="-0" Zomma="0" Color="-0" Volga="0.47" Veta="-1.79" ThetaGammaRatio="-13497.78" ThetaVegaRatio="-1.71" DTR="-0.09" Timestamp="09-02-2024 11:34:20"/>
<Value Token="38687" IV="0.12" Delta="0.85" Theta="-9.86" Vega="5.79" Gamma="0" IVVwap="0.12" Vanna="-0.02" Charm="0.04" Speed="-0" Zomma="0" Color="-0" Volga="0.47" Veta="-1.79" ThetaGammaRatio="-13421.44" ThetaVegaRatio="-1.7" DTR="-0.09" Timestamp="09-02-2024 11:34:18"/>
<Value Token="38687" IV="0.12" Delta="0.85" Theta="-9.96" Vega="5.82" Gamma="0" IVVwap="0.12" Vanna="-0.02" Charm="0.04" Speed="-0" Zomma="0" Color="-0" Volga="0.47" Veta="-1.79" ThetaGammaRatio="-13543.96" ThetaVegaRatio="-1.71" DTR="-0.09" Timestamp="09-02-2024 11:34:16"/>
<Value Token="38687" IV="0.12" Delta="0.85" Theta="-9.84" Vega="5.78" Gamma="0" IVVwap="0.12" Vanna="-0.02" Charm="0.04" Speed="-0" Zomma="0" Color="-0" Volga="0.48" Veta="-1.79" ThetaGammaRatio="-13400.34" ThetaVegaRatio="-1.7" DTR="-0.09" Timestamp="09-02-2024 11:34:15"/>
<Value Token="38687" IV="0.12" Delta="0.85" Theta="-9.93" Vega="5.8" Gamma="0" IVVwap="0.12" Vanna="-0.02" Charm="0.04" Speed="-0" Zomma="0" Color="-0" Volga="0.47" Veta="-1.79" ThetaGammaRatio="-13554.81" ThetaVegaRatio="-1.71" DTR="-0.09" Timestamp="09-02-2024 11:34:14"/>
<Value Token="38687" IV="0.12" Delta="0.86" Theta="-9.75" Vega="5.75" Gamma="0" IVVwap="0.12" Vanna="-0.02" Charm="0.04" Speed="-0" Zomma="0" Color="-0" Volga="0.48" Veta="-1.79" ThetaGammaRatio="-13319.47" ThetaVegaRatio="-1.7" DTR="-0.09" Timestamp="09-02-2024 11:34:06"/>
</OptionGreeksHistory>
```  
---
# Parameter List
| Parameter | Description |
|--------------|----------|
|**Exchange**|Name of supported exchange.|
|**InstrumentIdentifier**|Name of the symbol|
|**InstrumentIdentifiers**|List of symbols names maximum 25 symbols can be added in list. |
|**Unsubscribe**|Buy default subscribes to Realtime data. If [true], instrumentIdentifier is unsubscribed|
|**Periodicity**|String value of required periodicity.<br>*[“TICK”/“MINUTE”/“HOUR”/“DAY”/“WEEK”/“MONTH”, default = “TICK”]*|
|**Period**|Period for historical data. Can be applied for [MINUTE]/[HOUR]/[DAY].<br>Periodicity types *[Numerical value 1, 2, 3…, default = 1]*|
|**From**|It means starting timestamp for called historical data.|
|**To**|It means ending timestamp for request.|
|**isShortIdentifier**<br>**isShortIdentifiers**|Functions will use short instrument identifier format if set as [true]. Example of ShortIdentifiers are NIFTY25MAR21FUT, RELIANCE25MAR21FUT, NIFTY25MAR2115000CE, etc.|
|**MAX**|It is the limit returned data records.|
|**Product**|Name of supported Product. To get the list of product refer to the above **Product** function.|
|**Expiry**|Expiry dates for the exchange. To get the list of expiries refer to the above **Expiry** function.|
|**OptionType**|Expiry dates for the exchange. To get the list of OptionType refer to the above **OptionType** function.|
|**StrikePrice**|Expiry dates for the exchange. To get the list of StrikePrice refer to the above **StrikePrice** function.|
|**Token**<br>**Tokens**|Token numbers of instruments. <br> To get the token refer to the above **GetInstruments** or **GetInstrumentsOnSearch** functions.|
|**userTag**|It will be string which returns with response.|
|**onlyActive**|By default, function will return only active instruments.<br>[true]/[false], default = [true]|
|**nonTraded**|When true, results are sent with data of even non traded instruments. When false, data of only traded instruments during that period is sent. <Optional>, default value is “false”|

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "gfdl-rest",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": null,
    "keywords": null,
    "author": "Global Datafeeds",
    "author_email": "developer@globaldatafeeds.in",
    "download_url": "https://files.pythonhosted.org/packages/3b/ac/d85610bd737477bd3fb37250d5b549f0b69043178bd67015a95d93c56bd6/gfdl_rest-1.0.3.tar.gz",
    "platform": null,
    "description": "# Global Datafeeds Python Library Description\r\n\r\n## Reference document for implementing python library of REST API by Global Datafeeds\r\n\r\n  \r\nREST API by Global Datafeeds is versatile, most modern, simple yet powerful API. This API will provide on demand realtime, historical and snapshot data in JSON /XML/ CSV format (for Tick, Minute and End-Of-Day periodicities). It is Suitable for Web, Mobile as well as Desktop Applications. Below is the list of functions and their details available in REST API. For more detailed documentation & support, refer to the page by  **Global Datafeeds** [here.](https://globaldatafeeds.in/global-datafeeds-apis/documentation-support/documentation/rest-api-documentation/) <br>\r\n\r\nThis python library is developed to save time and efforts of clients while working on implementation of REST API of Global Datafeeds. List of functions (Data Requests) available is given below.\r\n \r\n\r\n## List of Functions:\r\n\r\n1. GetLastQuote\r\n2. GetLastQuoteShort\r\n3. GetLastQuoteShortWithClose\r\n4. GetLastQuoteArray\r\n5. GetLastQuoteArrayShort\r\n6. GetLastQuoteArrayShortWithClose\r\n7. GetSnapshot\r\n8. GetHistory\r\n9. GetHistoryAfterMarket\r\n10. GetExchanges\r\n11. GetInstruments\r\n12. GetInstrumentTypes\r\n13. GetProducts\r\n14. GetExpiryDates\r\n15. GetOptionTypes\r\n16. GetStrikePrices\r\n17. GetServerInfo\r\n18. GetLimitation\r\n19. GetMarketMessages\r\n20. GetExchangeMessages\r\n21. GetLastQuoteOptionChain\r\n22. GetExchangeSnapshot\r\n23. GetLastQuoteOptionGreeks\r\n24. GetLastQuoteArrayOptionGreeks\r\n25. GetLastQuoteOptionGreeksChain\r\n26. GetHistoryGreeks\r\n27. GetTopGainersLosers\r\n28. Parameters\r\n\r\n\r\n---\r\n\r\n# Getting Started\r\n\r\n## Installing a Library\r\n\r\nClient need to install this library to install the library by issuing the command from python console\r\n```\r\npython3 -m pip install gfdl_rest  \r\n```\r\nor on windows command prompt\r\n```\r\npip install gfdl_rest  \r\n```\r\n---\r\n\r\n## How to Connect using REST API\r\n\r\nOnce installation is completed client can connect to API server by the code sample given below:\r\n<br><br>**Syntax:**<br>\r\n```\r\nimport gfdl_rest as rs\r\n\r\n\r\n# api= rs.<Function Name> ('<ENDPOINT>', '<API_KEY>', xml=False, format_csv=False)\r\n```\r\nHere in above code sample:\r\n\r\n- Endpoint : endpoint is URL like 'http://endpoint:port/' or 'https://endpoint:port/'. End point URL and Port number will be provided by Global Datafeeds.\r\n\r\n- API Key : This is the key which will be authenticated and once key was authenticated, client can request data by using function given in the above list.\r\n\r\n---\r\n## GetLastQuote:\r\nIn this client will receive record of last (latest one) 'LastTradePrice' of single symbol with more details like Open, High, Low Close and many more fields. This function will return single latest record of the requested symbol. Below is the sample code to get last quote data:\r\n<br><br>**Syntax:**<br>\t\r\n```\r\nimport gfdl_rest as rs\r\n\r\napi= rs.GetLastQuote('<ENDPOINT>', '<ENTER_API_KEY>', xml=False, format_csv=False)\r\nresult = api.Get_LastQuote('Exchange','InstrumentIdentifier',\u2019 isShortIdentifier <Optional>[true]/[false][default=false]\u2019)\r\nprint(result)\r\n```\r\n<br>**Example**  \r\n```\r\nimport gfdl_rest as rs\r\n\r\napi= rs.GetLastQuote('<ENDPOINT>', '<ENTER_API_KEY>', xml=False, format_csv=False)\r\nresult = api.Get_LastQuote('NSE','SBIN-I')\r\nprint(result)\r\n```\r\nClient will get latest data for 'SBIN' current contact in response. 'SBIN-I' is InstrumentIdentifier (Symbol) to understand more about the 'Symbol Naming Conventions' check [here.](https://globaldatafeeds.in/global-datafeeds-apis/global-datafeeds-apis/documentation-support/symbol-naming-conventions/)\r\n<br>Sample response is given below. This response will be in JSON format.\r\n<br>**Response**<br>\r\n```\r\n{'AVERAGETRADEDPRICE': 816.8, 'BUYPRICE': 814.9, 'BUYQTY': 12, 'CLOSE': 820.3, 'EXCHANGE': 'NSE', 'HIGH': 821.0, 'INSTRUMENTIDENTIFIER': 'SBIN', 'LASTTRADEPRICE': 814.9, 'LASTTRADEQTY': 1, 'LASTTRADETIME': 1724219587000, 'LOW': 813.3, 'OPEN': 820.3, 'OPENINTEREST': 0, 'PREOPEN': False, 'QUOTATIONLOT': 1.0, 'SELLPRICE': 814.95, 'SELLQTY': 325, 'SERVERTIME': 1724219587000, 'TOTALQTYTRADED': 3396213, 'VALUE': 2774026778.4, 'PRICECHANGE': -5.4, 'PRICECHANGEPERCENTAGE': -0.66, 'OPENINTERESTCHANGE': 0}\r\n```\r\n---\r\n## GetLastQuoteShort:\r\nIn this client will receive record of last (latest one) 'LastTradePrice' of single symbol in short with limited fields/values. This function will return single latest record of the requested symbol. Below is the sample code to get last quote data:\r\n<br><br>**Syntax:**<br>\r\n```\r\nimport gfdl_rest as rs\r\n\r\napi= rs.GetLastQuoteShort('<ENDPOINT>', '<ENTER_API_KEY>', xml=False, format_csv=False)\r\nresult = api.Get_LastQuoteShort('Exchange','InstrumentIdentifier',\u2019 isShortIdentifier <Optional>[true]/[false][default=false]\u2019)\r\nprint(result)\r\n```\r\n<br>**Example:**\r\n```\r\nimport gfdl_rest as rs\r\n\r\napi= rs.GetLastQuoteShort('<ENDPOINT>', '<ENTER_API_KEY>', xml=False, format_csv=False)\r\nresult = api.Get_LastQuoteShort('NSE','SBIN')\r\nprint(result)\r\n```\r\nClient will get latest data for 'NIFTY' current contact in response. 'NIFTY-I' is instrumentIdentifier (Symbol) to understand more about the 'Symbol Naming Conventions' check [here.](https://globaldatafeeds.in/global-datafeeds-apis/global-datafeeds-apis/documentation-support/symbol-naming-conventions/)\r\n<br>Sample reponse is given below. This response will be in JSON format.\r\n<br>**Response**<br>\r\n```\r\n{'BUYPRICE': 816.8, 'EXCHANGE': 'NSE', 'INSTRUMENTIDENTIFIER': 'SBIN', 'LASTTRADEPRICE': 816.9, 'LASTTRADETIME': 1724220139000, 'SELLPRICE': 816.9}\r\n```\r\n---\t\r\n## GetLastQuoteShortWithClose:\r\nIn this client will receive record of last (latest one) 'LastTradePrice' of single symbol in short with Close of Previous Day. This function will return single latest record of the requested symbol. Below is the sample code to get last quote data:\r\n<br><br>**Syntax:**<br>\r\n```\r\nimport gfdl_rest as rs\r\n\r\napi= rs.GetLastQuoteShortWithClose('<ENDPOINT>', '<ENTER_API_KEY>', xml=False, format_csv=False)\r\nresult = api.Get_LastQuoteShortWithClose('Exchange','InstrumentIdentifier',\u2019 isShortIdentifier <Optional>[true]/[false][default=false]\u2019)\r\n\r\nprint(result)\r\n```\r\n<br>**Example**\r\n```\r\nimport gfdl_rest as rs\r\n\r\napi= rs.GetLastQuoteShortWithClose('<ENDPOINT>', '<ENTER_API_KEY>', xml=False, format_csv=False)\r\nresult = api.Get_LastQuoteShortWithClose('NSE','SBIN')\r\nprint(result)\r\n```\r\n\r\nClient will get latest data for 'NIFTY' current contact in response. 'NIFTY-I' is instrumentIdentifier (Symbol) to understand more about the 'Symbol Naming Conventions' check [here.](https://globaldatafeeds.in/global-datafeeds-apis/global-datafeeds-apis/documentation-support/symbol-naming-conventions/)\r\n<br>Sample reponse is given below. This response will be in JSON format.\r\n<br>**Response**<br>\r\n\r\n```\r\n{'BUYPRICE': 816.25, 'EXCHANGE': 'NSE', 'INSTRUMENTIDENTIFIER': 'SBIN', 'LASTTRADEPRICE': 816.35, 'LASTTRADETIME': 1724220269000, 'SELLPRICE': 816.35, 'CLOSE': 820.3}\r\n```\r\n---\r\n## GetLastQuoteArray:\r\nIn this client will receive record of last (latest one) 'LastTradePrice' of multiple symbols with more details like Open, High, Low Close and many more fields. In this single call client can request maximum 25 number of symbols. This function will return array of latest record single for each requested symbol. Below is the sample code to get last quote data:\r\n<br><br>**Syntax:**<br>\r\n```\r\nimport gfdl_rest as rs\r\n\r\napi= rs.GetLastQuoteArray('<ENDPOINT>', '<ENTER_API_KEY>', xml=False, format_csv=False)\r\nresult = api.GetLastQuoteArray('Exchange','InstrumentIdentifier',\u2019 isShortIdentifier <Optional>[true]/[false][default=false]\u2019)\r\nprint(result)\r\n```\r\n<br>**Example**\r\n```\r\nimport gfdl_rest as rs\r\n\r\napi= rs.GetLastQuoteArray('<ENDPOINT>', '<ENTER_API_KEY>', xml=False, format_csv=False)\r\nresult = api.GetLastQuoteArray('NFO','NIFTY-I+BANKNIFTY-I+FINNIFTY-I')\r\nprint(result)\r\n```\r\n\r\nClient will get array of latest data for 'NIFTY and BANKNIFTY' current contact in response. 'NIFTY-I AND BANKNIFTY-I' is instrumentIdentifier (Symbol) to understand more about the 'Symbol Naming Conventions' check [here.](https://globaldatafeeds.in/global-datafeeds-apis/global-datafeeds-apis/documentation-support/symbol-naming-conventions/)\r\n<br>Sample reponse is given below. This response will be in JSON format.\r\n<br>**Response**<br>\r\n\r\n```\r\n[{'AVERAGETRADEDPRICE': 24741.52, 'BUYPRICE': 24771.4, 'BUYQTY': 100, 'CLOSE': 24711.25, 'EXCHANGE': 'NFO', 'HIGH': 24794.0, 'INSTRUMENTIDENTIFIER': 'NIFTY-I', 'LASTTRADEPRICE': 24771.4, 'LASTTRADEQTY': 325, 'LASTTRADETIME': 1724230373000, 'LOW': 24685.05, 'OPEN': 24697.7, 'OPENINTEREST': 10891900, 'PREOPEN': False, 'QUOTATIONLOT': 25.0, 'SELLPRICE': 24772.9, 'SELLQTY': 100, 'SERVERTIME': 1724230373000, 'TOTALQTYTRADED': 2167550, 'VALUE': 53628481676.0, 'PRICECHANGE': 60.15, 'PRICECHANGEPERCENTAGE': 0.24, 'OPENINTERESTCHANGE': 119225}, \r\n{'AVERAGETRADEDPRICE': 50636.84, 'BUYPRICE': 50577.3, 'BUYQTY': 15, 'CLOSE': 50892.2, 'EXCHANGE': 'NFO', 'HIGH': 50890.0, 'INSTRUMENTIDENTIFIER': 'BANKNIFTY-I', 'LASTTRADEPRICE': 50573.45, 'LASTTRADEQTY': 0, 'LASTTRADETIME': 1724230373000, 'LOW': 50463.0, 'OPEN': 50832.0, 'OPENINTEREST': 3052665, 'PREOPEN': False, 'QUOTATIONLOT': 15.0, 'SELLPRICE': 50582.5, 'SELLQTY': 90, 'SERVERTIME': 1724230373000, 'TOTALQTYTRADED': 2234070, 'VALUE': 113126245138.8, 'PRICECHANGE': -318.75, 'PRICECHANGEPERCENTAGE': -0.63, 'OPENINTERESTCHANGE': 280215}, \r\n{'AVERAGETRADEDPRICE': 23128.74, 'BUYPRICE': 23102.65, 'BUYQTY': 50, 'CLOSE': 23210.5, 'EXCHANGE': 'NFO', 'HIGH': 23199.3, 'INSTRUMENTIDENTIFIER': 'FINNIFTY-I', 'LASTTRADEPRICE': 23100.0, 'LASTTRADEQTY': 0, 'LASTTRADETIME': 1724230372000, 'LOW': 23061.95, 'OPEN': 23157.0, 'OPENINTEREST': 69450, 'PREOPEN': False, 'QUOTATIONLOT': 25.0, 'SELLPRICE': 23107.7, 'SELLQTY': 50, 'SERVERTIME': 1724230372000, 'TOTALQTYTRADED': 48100, 'VALUE': 1112492394.0, 'PRICECHANGE': -110.5, 'PRICECHANGEPERCENTAGE': -0.48, 'OPENINTERESTCHANGE': 8075}] \r\n```\r\n---\r\n## GetLastQuoteArrayShort:\r\nIn this client will receive array of records of lastest 'LastTradePrice' of multiple symbols in short with limited fields/values. In this single call client can request maximum 25 number of symbols. This function will return array of latest record single for each requested symbol. Below is the sample code to get last quote data:\r\n\r\n<br>**Syntax:**<br>\r\n```\r\nimport gfdl_rest as rs\r\n\r\napi= rs.GetLastQuoteArrayShort('<ENDPOINT>', '<ENTER_API_KEY>', xml=False, format_csv=False)\r\nresult = api.Get_LastQuoteArrayShort('Exchange','InstrumentIdentifier1\u2019+'InstrumentIdentifier2\u2019,\u2019 isShortIdentifier <Optional>[true]/[false][default=false]\u2019)\r\n)\r\nprint(result)\r\n```\r\n\r\n<br>**Example**\r\n```\r\nimport gfdl_rest as rs\r\n\r\napi= rs.GetLastQuoteArrayShort('<ENDPOINT>', '<ENTER_API_KEY>', xml=False, format_csv=False)\r\nresult = api.Get_LastQuoteArrayShort('NFO','NIFTY-I+BANKNIFTY-I+FINNIFTY-I')\r\nprint(result)\r\n```\r\n\t\r\nClient will get array of latest data for 'NIFTY and BANKNIFTY' current contact in response. 'NIFTY-I AND BANKNIFTY-I' is instrumentIdentifier (Symbol) to understand more about the 'Symbol Naming Conventions' check [here.](https://globaldatafeeds.in/global-datafeeds-apis/global-datafeeds-apis/documentation-support/symbol-naming-conventions/)\r\n<br>Sample reponse is given below. This response will be in JSON format.\r\n<br>**Response**<br> \r\n\r\n```\r\n[{'BUYPRICE': 24772.25, 'EXCHANGE': 'NFO', 'INSTRUMENTIDENTIFIER': 'NIFTY-I', 'LASTTRADEPRICE': 24772.4, 'LASTTRADETIME': 1724230596000, 'SELLPRICE': 24775.4}, \r\n{'BUYPRICE': 50572.0, 'EXCHANGE': 'NFO', 'INSTRUMENTIDENTIFIER': 'BANKNIFTY-I', 'LASTTRADEPRICE': 50576.05, 'LASTTRADETIME': 1724230595000, 'SELLPRICE': 50577.45}, \r\n{'BUYPRICE': 23098.05, 'EXCHANGE': 'NFO', 'INSTRUMENTIDENTIFIER': 'FINNIFTY-I', 'LASTTRADEPRICE': 23100.0, 'LASTTRADETIME': 1724230596000, 'SELLPRICE': 23101.45}]\r\n ```\r\n---\r\n## GetLastQuoteArrayShortWithClose:\r\nIn this client will receive array of records of lastest 'LastTradePrice' of multiple symbols in short with limited fields/values with Close of Previous Day. In this single call client can request maximum 25 number of symbols. This function will return array of latest record single for each requested symbol. Below is the sample code to get last quote data:\r\n<br><br>**Syntax:**<br>\r\n```\r\nimport gfdl_rest as rs\r\n\r\napi= rs.GetLastQuoteArrayShortWithClose('<ENDPOINT>', '<ENTER_API_KEY>', xml=False, format_csv=False)\r\nresult = api.Get_LastQuoteArrayShortWithClose('Exchange','InstrumentIdentifier1\u2019+'InstrumentIdentifier2\u2019, \u2019isShortIdentifier <Optional>[true]/[false][default=false]\u2019)\r\nprint(result)\r\n```\r\n<br>**Example**\r\n```\r\nimport gfdl_rest as rs\r\n\r\napi= rs.GetLastQuoteArrayShortWithClose('<ENDPOINT>', '<ENTER_API_KEY>', xml=False, format_csv=False)\r\nresult = api.Get_LastQuoteArrayShortWithClose('NFO','NIFTY-I+BANKNIFTY-I+FINNIFTY-I')\r\nprint(result)\r\n```\r\nClient will get array of latest data for 'NIFTY and BANKNIFTY' current contact in response. 'NIFTY-I AND BANKNIFTY-I' is instrumentIdentifier (Symbol) to understand more about the 'Symbol Naming Conventions' check [here.](https://globaldatafeeds.in/global-datafeeds-apis/global-datafeeds-apis/documentation-support/symbol-naming-conventions/)\r\n<br>Sample response is given below. This response will be in JSON format.\r\n<br>**Response**<br>\r\n\r\n```\r\n[{'BUYPRICE': 24768.0, 'EXCHANGE': 'NFO', 'INSTRUMENTIDENTIFIER': 'NIFTY-I', 'LASTTRADEPRICE': 24768.0, 'LASTTRADETIME': 1724230693000, 'SELLPRICE': 24770.2, 'CLOSE': 24711.25}, \r\n{'BUYPRICE': 50558.75, 'EXCHANGE': 'NFO', 'INSTRUMENTIDENTIFIER': 'BANKNIFTY-I', 'LASTTRADEPRICE': 50561.05, 'LASTTRADETIME': 1724230694000, 'SELLPRICE': 50564.0, 'CLOSE': 50892.2}, \r\n{'BUYPRICE': 23093.7, 'EXCHANGE': 'NFO', 'INSTRUMENTIDENTIFIER': 'FINNIFTY-I', 'LASTTRADEPRICE': 23095.0, 'LASTTRADETIME': 1724230694000, 'SELLPRICE': 23098.15, 'CLOSE': 23210.5}]\r\n ```\r\n---\r\n## GetSnapshot:\r\nIn this client will receive snapshots data. This function returns latest snapshot data as per Periodicity & Period values provided. In this single call client can request maximum 25 number of symbols. This function will return array of latest single record for each requested symbol. Below is the sample code to get snapshot data:\r\n<br>**Syntax:**<br>\r\n``` \r\nimport gfdl_rest as rs\r\n\r\napi= rs.GetSnapshot('<ENDPOINT>', '<ENTER_API_KEY>', xml=False, format_csv=False)\r\nresult = api.Get_Snapshot('Exchange',\u2019Periodicity\u2019,\u2019Period\u2019,'InstrumentIdentifier1\u2019+'InstrumentIdentifier2\u2019, \u2019 isShortIdentifier <Optional>[true]/[false][default=false]\u2019)\r\nprint(result)\r\n```\r\n<br>**Example**\r\n``` \r\nimport gfdl_rest as rs\r\n\r\napi= rs.GetSnapshot('<ENDPOINT>', '<ENTER_API_KEY>', xml=False, format_csv=False)\r\nresult = api.Get_Snapshot('NFO','Minute','1','NIFTY-I+BANKNIFTY-I+FINNIFTY-I')\r\nprint(result)\r\n```  \r\n\r\nClient will get array of latest data for 'NIFTY and BANKNIFTY' current contact in response. 'NIFTY-I AND BANKNIFTY-I' is instrumentIdentifier (Symbol) to understand more about the 'Symbol Naming Conventions' check [here.](https://globaldatafeeds.in/global-datafeeds-apis/global-datafeeds-apis/documentation-support/symbol-naming-conventions/)\r\n<br>Sample reponse is given below. This response will be in JSON format.\r\n<br>**Response**<br> \r\n\r\n```\r\n[{'CLOSE': 50571.7, 'EXCHANGE': 'NFO', 'HIGH': 50571.75, 'INSTRUMENTIDENTIFIER': 'FUTIDX_BANKNIFTY_28AUG2024_XX_0', 'TRADEDQTY': 2190, 'LASTTRADETIME': 1724230680000, 'LOW': 50557.7, 'OPEN': 50565.0, 'OPENINTEREST': 3052440},\r\n {'CLOSE': 23093.35, 'EXCHANGE': 'NFO', 'HIGH': 23095.0, 'INSTRUMENTIDENTIFIER': 'FUTIDX_FINNIFTY_27AUG2024_XX_0', 'TRADEDQTY': 75, 'LASTTRADETIME': 1724230680000, 'LOW': 23093.35, 'OPEN': 23095.0, 'OPENINTEREST': 69475}, \r\n{'CLOSE': 24769.95, 'EXCHANGE': 'NFO', 'HIGH': 24773.45, 'INSTRUMENTIDENTIFIER': 'FUTIDX_NIFTY_29AUG2024_XX_0', 'TRADEDQTY': 1675, 'LASTTRADETIME': 1724230680000, 'LOW': 24768.0, 'OPEN': 24770.0, 'OPENINTEREST': 10889950}] \r\n```\r\n---\r\n# Historical data requests\r\n\r\n## GetHistory:\r\nThis will returns historical data as per the periodicity and Period provided in request. Returned dat will be Tick, Minute candle or EOD. Client will get 2 types of response depend on the request\r\n<br>\r\n- Getbyperiod: This request will return the data between the provided period. Client need to provide From time and To time in this call. Below is the sample code to get history data:\r\n<br><br>**Syntax:**<br>\r\n```\r\nimport gfdl_rest as rs\r\n\r\napi= rs.GetHistory('<ENDPOINT>', '<ENTER_API_KEY>', xml=False, format_csv=False)\r\nresult = api.Get_History('Exchange','InstrumentIdentifier\u2019,\u2019Periodicity\u2019,\u2019Period\u2019,'max <Optional>\u2019,'From <Optional>\u2019,\u2019To <Optional>\u2019, \u2019 isShortIdentifier <Optional>[true]/[false][default=false]\u2019)\r\n#either use From and To parameter or Max parameter\r\n# From and To = user can select particular timeframe to get history data\r\n#Max = if user selects Max =10, response will get latest 10 records of history data\r\nprint(result)\r\n```\r\n<br>**Example**\r\n\r\n```\r\nimport gfdl_rest as rs\r\n\r\napi= rs.GetHistory('<ENDPOINT>', '<ENTER_API_KEY>', xml=False, format_csv=False)\r\nresult = api.Get_History('NFO','NIFTY-I','Minute','1','10','1723779900','1723802400')  print(result)\r\n```\r\n\r\nHere in this request From and To is a numerical value of UNIX Timestamp like \u20181658138400\u2019 (18-07-2022 15:30:00). This value is expressed as no. of seconds since Epoch time (i.e. 1st January 1970). Also known as Unix Time. Please Visit [Epoch Converter](https://www.epochconverter.com/) to get formulae to convert human readable time to Epoch and vice versa.\r\n\r\nAs a response to above call client will get all the 1 minute candle records between provided period.\r\n<br>\r\n- Getcaldle: This request will return the data in number of latest candles. Client need to provide number of candles in this call. Below is the sample code to get snapshot data:\r\n<br><br>**Syntax:**<br>\r\n```\r\nimport gfdl_rest as rs\r\n\r\napi= rs.GetHistory('<ENDPOINT>', '<ENTER_API_KEY>', xml=False, format_csv=False)\r\nresult = api.Get_History('Exchange','InstrumentIdentifier\u2019,\u2019Periodicity\u2019,\u2019Period\u2019,'max <Optional>\u2019,'usertTag<optional> \u2019, 'isShortIdentifier <Optional>[true]/[false][default=false]\u2019)\r\n#either use From and To parameter or Max parameter\r\n# From and To = user can select particular timeframe to get history data\r\n#Max = if user selects Max =10, response will get latest 10 records of history data\r\n\r\nprint(result)\r\n```\r\n<br>**Example**\r\n```\r\nimport gfdl_rest as rs\r\n\r\napi= rs.GetHistory('<ENDPOINT>', '<ENTER_API_KEY>', xml=False, format_csv=False)\r\nresult = api.Get_History('NFO','NIFTY-I','TICK','1','10','surendran') \r\nprint(result)\r\n```\r\n\r\nHere in this request From and To is a numerical value of UNIX Timestamp like \u20181658138400\u2019 (18-07-2022 15:30:00). This value is expressed as no. of seconds since Epoch time (i.e. 1st January 1970). Also known as Unix Time. Please Visit [Epoch Converter](https://www.epochconverter.com/) to get formulae to convert human readable time to Epoch and vice versa.\r\nAs a response to above call, client will get all 10 number of 1 minute candle records. \r\n\r\n<br>Sample response for both the calls is given below. This response will be in JSON format.\r\n<br><br>**Response**<br>\r\n*OHLC Format:*\r\n``` \r\n{'USERTAG': surendran, 'OHLC': [{'CLOSE': 24757.3, 'HIGH': 24794, 'LASTTRADETIME': 1724243400000, 'LOW': 24685.05, 'OPEN': 24697.7, 'OPENINTEREST': 10906875, 'QUOTATIONLOT': 25, 'TRADEDQTY': 2223325}, {'CLOSE': 24711.25, 'HIGH': 24765, 'LASTTRADETIME': 1724157000000, 'LOW': 24624.25, 'OPEN': 24639.95, 'OPENINTEREST': 10772675, 'QUOTATIONLOT': 25, 'TRADEDQTY': 3759150}, {'CLOSE': 24595.75, 'HIGH': 24661.75, 'LASTTRADETIME': 1724070600000, 'LOW': 24533, 'OPEN': 24640.2, 'OPENINTEREST': 10966725, 'QUOTATIONLOT': 25, 'TRADEDQTY': 3798325}, {'CLOSE': 24585.5, 'HIGH': 24606.15, 'LASTTRADETIME': 1723811400000, 'LOW': 24233, 'OPEN': 24322.35, 'OPENINTEREST': 11295600, 'QUOTATIONLOT': 25, 'TRADEDQTY': 9540625}, {'CLOSE': 24174.65, 'HIGH': 24228.65, 'LASTTRADETIME': 1723638600000, 'LOW': 24122.15, 'OPEN': 24199.95, 'OPENINTEREST': 11531500, 'QUOTATIONLOT': 25, 'TRADEDQTY': 4508525}, {'CLOSE': 24161, 'HIGH': 24390, 'LASTTRADETIME': 1723552200000, 'LOW': 24125.35, 'OPEN': 24349.95, 'OPENINTEREST': 11998675, 'QUOTATIONLOT': 25, 'TRADEDQTY': 5699100}, {'CLOSE': 24356.8, 'HIGH': 24530, 'LASTTRADETIME': 1723465800000, 'LOW': 24272, 'OPEN': 24355, 'OPENINTEREST': 11704100, 'QUOTATIONLOT': 25, 'TRADEDQTY': 6599150}, {'CLOSE': 24401.5, 'HIGH': 24444, 'LASTTRADETIME': 1723206600000, 'LOW': 24316.4, 'OPEN': 24350.2, 'OPENINTEREST': 11709075, 'QUOTATIONLOT': 25, 'TRADEDQTY': 6500325}, {'CLOSE': 24136.55, 'HIGH': 24357.75, 'LASTTRADETIME': 1723120200000, 'LOW': 24111, 'OPEN': 24299, 'OPENINTEREST': 12343075, 'QUOTATIONLOT': 25, 'TRADEDQTY': 9407300}, {'CLOSE': 24366.45, 'HIGH': 24397.95, 'LASTTRADETIME': 1723033800000, 'LOW': 24208.2, 'OPEN': 24310.2, 'OPENINTEREST': 12736375, 'QUOTATIONLOT': 25, 'TRADEDQTY': 8281950}]} \r\n```\r\n  \r\n*TICK Format:*\r\n```\r\n{'USERTAG': surendran, 'TICK': [{'BUYPRICE': 24753.8, 'BUYQTY': 50, 'LASTTRADEPRICE': 24753.15, 'LASTTRADETIME': 1724231023000, 'OPENINTEREST': 10906875, 'QUOTATIONLOT': 25, 'SELLPRICE': 24758, 'SELLQTY': 25, 'TRADEDQTY': 625}, {'BUYPRICE': 24753.05, 'BUYQTY': 125, 'LASTTRADEPRICE': 24754.35, 'LASTTRADETIME': 1724231021000, 'OPENINTEREST': 10906875, 'QUOTATIONLOT': 25, 'SELLPRICE': 24755, 'SELLQTY': 25, 'TRADEDQTY': 100}, {'BUYPRICE': 24754.35, 'BUYQTY': 25, 'LASTTRADEPRICE': 24755.05, 'LASTTRADETIME': 1724231019000, 'OPENINTEREST': 10906875, 'QUOTATIONLOT': 25, 'SELLPRICE': 24756.8, 'SELLQTY': 100, 'TRADEDQTY': 50}, {'BUYPRICE': 24754, 'BUYQTY': 25, 'LASTTRADEPRICE': 24754, 'LASTTRADETIME': 1724231018000, 'OPENINTEREST': 10906875, 'QUOTATIONLOT': 25, 'SELLPRICE': 24755.05, 'SELLQTY': 25, 'TRADEDQTY': 100}, {'BUYPRICE': 24754, 'BUYQTY': 100, 'LASTTRADEPRICE': 24755, 'LASTTRADETIME': 1724231016000, 'OPENINTEREST': 10906875, 'QUOTATIONLOT': 25, 'SELLPRICE': 24755.05, 'SELLQTY': 25, 'TRADEDQTY': 0}, {'BUYPRICE': 24754, 'BUYQTY': 100, 'LASTTRADEPRICE': 24755, 'LASTTRADETIME': 1724231015000, 'OPENINTEREST': 10906875, 'QUOTATIONLOT': 25, 'SELLPRICE': 24757.7, 'SELLQTY': 100, 'TRADEDQTY': 550}, {'BUYPRICE': 24755.65, 'BUYQTY': 25, 'LASTTRADEPRICE': 24755.45, 'LASTTRADETIME': 1724231013000, 'OPENINTEREST': 10906875, 'QUOTATIONLOT': 25, 'SELLPRICE': 24758, 'SELLQTY': 25, 'TRADEDQTY': 125}, {'BUYPRICE': 24755.45, 'BUYQTY': 25, 'LASTTRADEPRICE': 24755.05, 'LASTTRADETIME': 1724231012000, 'OPENINTEREST': 10906875, 'QUOTATIONLOT': 25, 'SELLPRICE': 24758, 'SELLQTY': 25, 'TRADEDQTY': 125}, {'BUYPRICE': 24755.15, 'BUYQTY': 25, 'LASTTRADEPRICE': 24755.05, 'LASTTRADETIME': 1724231010000, 'OPENINTEREST': 10906875, 'QUOTATIONLOT': 25, 'SELLPRICE': 24758.9, 'SELLQTY': 25, 'TRADEDQTY': 0}, {'BUYPRICE': 24755.15, 'BUYQTY': 25, 'LASTTRADEPRICE': 24755.05, 'LASTTRADETIME': 1724231008000, 'OPENINTEREST': 10906875, 'QUOTATIONLOT': 25, 'SELLPRICE': 24759, 'SELLQTY': 175, 'TRADEDQTY': 25}]} \r\n```\r\n---\r\n## GetHistoryAfterMarket:\r\nThis function returns historical data in the form of Tick, Minute or EOD as per request till previous working day. This function is useful for the users / service providers who want to provide services like back-testing as they do not need live / current day\u2019s data. This should also save their API costs. To receive current day\u2019s historical data via this function, you will need to send request after market is closed. Requests for this function are same as **History.**\r\n\r\n---\r\n## GetExchanges:\r\nClient will get the list of available exchanges configured for API Key. Below is the sample code to get exchanges data:\r\n<br><br>**Syntax:**<br>\r\n```\r\nimport gfdl_rest as rs\r\n\r\napi= rs.GetExchanges('<ENDPOINT>', '<ENTER_API_KEY>', xml=False, format_csv=False)\r\nresult = api.Get_Exchanges()\r\nprint(result)\r\n```\r\n <br>**Example**\r\n```\r\nimport gfdl_rest as rs\r\n\r\napi= rs.GetExchanges('<ENDPOINT>', '<ENTER_API_KEY>', xml=False, format_csv=False)\r\nresult = api.Get_Exchanges()\r\nprint(result)\r\n```\r\nSample reponse is given below. This response will be in JSON format.\r\n<br>**Response**<br>\r\n```\r\n{'EXCHANGES': ['BFO', 'BSE', 'BSE_DEBT', 'BSE_IDX', 'CDS', 'MCX', 'NFO', 'NSE', 'NSE_IDX']} \r\n```\r\n---\r\n## GetInstrumentsOnSearch:\r\nThis function will returns array of max. 20 instruments by selected exchange and \u2018search string\u2019. Below is the sample code to get snapshot data:\r\n<br><br>**Syntax:**<br>\r\n```\r\nimport gfdl_rest as rs\r\n\r\napi= rs.GetInstrumentsOnSearch('<ENDPOINT>', '<ENTER_API_KEY>', xml=False, format_csv=False)\r\nresult = api.Get_InstrumentsOnSearch('Exchange','Search\u2019,\u2019 InstrumentType <Optional>\u2019,\u2019Optiontype <Optional> \u2019,\u2019ExpiryDate <Optional>,\u2019StrikePrice <Optional>\u2019,\u2019OnlyActive[true/false] <Optional>\u2019)\r\n print(result)\r\n```\r\n<br>**Example**\r\n```\r\nimport gfdl_rest as rs\r\n\r\napi= rs.GetInstrumentsOnSearch('<ENDPOINT>', '<ENTER_API_KEY>', xml=False, format_csv=False)\r\nresult = api.Get_InstrumentsOnSearch('NFO','NIFTY','OPTIDX','CE','22AUG2024') \r\n print(result)\r\n```\r\n\r\nAs a response to above call, client will get records with details for 20 instruments under provided exchange and 'Search string'. <br> Sample response is given below. This response will be in JSON format.\r\n<br>**Response**<br>\r\n```\r\n{'INSTRUMENTS': [{'EXCHANGE': 'NFO', 'EXPIRY': '22Aug2024', 'IDENTIFIER': 'OPTIDX_NIFTY_22AUG2024_CE_27800', 'INDEXNAME': '', 'NAME': 'OPTIDX', 'OPTIONTYPE': 'CE', 'PRICEQUOTATIONUNIT': '', 'PRODUCT': 'NIFTY', 'PRODUCTMONTH': '22Aug2024', 'STRIKEPRICE': 27800.0, 'TRADESYMBOL': 'NIFTY22AUG2427800CE', 'UNDERLYINGASSET': '', 'UNDERLYINGASSETEXPIRY': '', 'QUOTATIONLOT': 25.0, 'DESCRIPTION': ''}, {'EXCHANGE': 'NFO', 'EXPIRY': '22Aug2024', 'IDENTIFIER': 'OPTIDX_NIFTY_22AUG2024_CE_22550', 'INDEXNAME': '', 'NAME': 'OPTIDX', 'OPTIONTYPE': 'CE', 'PRICEQUOTATIONUNIT': '', 'PRODUCT': 'NIFTY', 'PRODUCTMONTH': '22Aug2024', 'STRIKEPRICE': 22550.0, 'TRADESYMBOL': 'NIFTY22AUG2422550CE', 'UNDERLYINGASSET': '', 'UNDERLYINGASSETEXPIRY': '', 'QUOTATIONLOT': 25.0, 'DESCRIPTION': ''}, .....................................{'EXCHANGE': 'NFO', 'EXPIRY': '22Aug2024', 'IDENTIFIER': 'OPTIDX_NIFTY_22AUG2024_CE_22100', 'INDEXNAME': '', 'NAME': 'OPTIDX', 'OPTIONTYPE': 'CE', 'PRICEQUOTATIONUNIT': '', 'PRODUCT': 'NIFTY', 'PRODUCTMONTH': '22Aug2024', 'STRIKEPRICE': 22100.0, 'TRADESYMBOL': 'NIFTY22AUG2422100CE', 'UNDERLYINGASSET': '', 'UNDERLYINGASSETEXPIRY': '', 'QUOTATIONLOT': 25.0, 'DESCRIPTION': ''}, {'EXCHANGE': 'NFO', 'EXPIRY': '22Aug2024', 'IDENTIFIER': 'OPTIDX_NIFTY_22AUG2024_CE_22400', 'INDEXNAME': '', 'NAME': 'OPTIDX', 'OPTIONTYPE': 'CE', 'PRICEQUOTATIONUNIT': '', 'PRODUCT': 'NIFTY', 'PRODUCTMONTH': '22Aug2024', 'STRIKEPRICE': 22400.0, 'TRADESYMBOL': 'NIFTY22AUG2422400CE', 'UNDERLYINGASSET': '', 'UNDERLYINGASSETEXPIRY': '', 'QUOTATIONLOT': 25.0, 'DESCRIPTION': ''}]}\r\n```\r\n--- \r\n## GetInstruments:\r\nThis function will returns array of instruments by selected exchange. Below is the sample code to get snapshot data:\r\n<br><br>**Syntax:**<br>\r\n```\r\nimport gfdl_rest as rs\r\n\r\napi= rs.GetInstruments('<ENDPOINT>', '<ENTER_API_KEY>', xml=False, format_csv=False)\r\nresult = api.Get_Instruments('Exchange','Search\u2019,\u2019 InstrumentType <Optional>\u2019,\u2019Optiontype <Optional> \u2019,\u2019ExpiryDate <Optional>,\u2019StrikePrice <Optional>\u2019,\u2019OnlyActive[true/false] <Optional>\u2019)\r\nprint(result)\r\n```\r\n<br>**Example**\r\n```\r\nimport gfdl_rest as rs\r\n\r\napi= rs.GetInstruments('<ENDPOINT>', '<ENTER_API_KEY>', xml=False, format_csv=False)\r\nresult = api.Get_Instruments('NFO','NIFTY','OPTIDX','CE','29AUG2024')\r\nprint(result)\r\n```  \r\n\r\nAs a response to above call, client will get records with details for all the instruments under provided exchange. <br> Sample reponse is given below. This response will be in JSON format.\r\n<br>**Response**<br>\r\n```\r\n{'INSTRUMENTS': [{'EXCHANGE': 'NFO', 'EXPIRY': '29Aug2024', 'IDENTIFIER': 'OPTIDX_NIFTY_29AUG2024_CE_18550', 'INDEXNAME': '', 'NAME': 'OPTIDX', 'OPTIONTYPE': 'CE', 'PRICEQUOTATIONUNIT': '', 'PRODUCT': 'NIFTY', 'PRODUCTMONTH': '29Aug2024', 'STRIKEPRICE': 18550.0, 'TRADESYMBOL': 'NIFTY29AUG2418550CE', 'UNDERLYINGASSET': '', 'UNDERLYINGASSETEXPIRY': '', 'QUOTATIONLOT': 25.0, 'DESCRIPTION': ''}, {'EXCHANGE': 'NFO', 'EXPIRY': '29Aug2024', 'IDENTIFIER': 'OPTIDX_NIFTY_29AUG2024_CE_18600', 'INDEXNAME': '', 'NAME': 'OPTIDX', 'OPTIONTYPE': 'CE', 'PRICEQUOTATIONUNIT': '', 'PRODUCT': 'NIFTY', 'PRODUCTMONTH': '29Aug2024', 'STRIKEPRICE': 18600.0, 'TRADESYMBOL': 'NIFTY29AUG2418600CE', 'UNDERLYINGASSET': '', 'UNDERLYINGASSETEXPIRY': '', 'QUOTATIONLOT': 25.0, 'DESCRIPTION': ''}, ................................................. {'EXCHANGE': 'NFO', 'EXPIRY': '29Aug2024', 'IDENTIFIER': 'OPTIDX_NIFTY_29AUG2024_CE_29250', 'INDEXNAME': '', 'NAME': 'OPTIDX', 'OPTIONTYPE': 'CE', 'PRICEQUOTATIONUNIT': '', 'PRODUCT': 'NIFTY', 'PRODUCTMONTH': '29Aug2024', 'STRIKEPRICE': 29250.0, 'TRADESYMBOL': 'NIFTY29AUG2429250CE', 'UNDERLYINGASSET': '', 'UNDERLYINGASSETEXPIRY': '', 'QUOTATIONLOT': 25.0, 'DESCRIPTION': ''}]}\r\n```\r\n---  \r\n## GetInstrumentTypes:\r\nThis function will returns list of Instrument Types (e.g. FUTIDX, FUTSTK, etc.) under provided exchange. Below is the sample code to get instrument types:\r\n<br><br>**Syntax:**<br>\r\n```\r\nimport gfdl_rest as rs\r\n\r\napi= rs.GetInstrumentTypes('<ENDPOINT>', '<ENTER_API_KEY>', xml=False, format_csv=False)\r\nresult = api.Get_InstrumentTypes('Exchange')\r\nprint(result)\r\n```\r\n<br>**Example:**\r\n```\r\nimport gfdl_rest as rs\r\n\r\napi= rs.GetInstrumentTypes('<ENDPOINT>', '<ENTER_API_KEY>', xml=False, format_csv=False)\r\nresult = api.Get_InstrumentTypes('NFO')\r\nprint(result)\r\n```\r\n\r\nAs a response to above call, client will get the instrument types under provided exchange. <br>Sample response is given below. This response will be in JSON format.\r\n<br><br>**Response**<br>\r\n```\r\n{'INSTRUMENTTYPES': ['FUTIDX', 'FUTSTK', 'OPTIDX', 'OPTSTK']} \r\n```\r\n---\t  \r\n## GetProducts: \r\nThis function will returns list of Products (e.g. NIFTY, BANKNIFTY, GAIL etc.) under provided exchange. Below is the sample code to get instrument types:\r\n<br><br>**Syntax:**<br>\r\n```\r\nimport gfdl_rest as rs\r\n\r\napi= rs.GetProducts('<ENDPOINT>', '<ENTER_API_KEY>', xml=False, format_csv=False)\r\nresult = api.Get_Products('Exchange')\r\nprint(result)\r\n```\r\n<br>**Example**\r\n```\r\nimport gfdl_rest as rs\r\n\r\napi= rs.GetProducts('<ENDPOINT>', '<ENTER_API_KEY>', xml=False, format_csv=False)\r\nresult = api.Get_Products('NFO')\r\nprint(result)\r\n```\r\n\t  \r\nAs a response to above call, client will get the list of products under provided exchange. <br>Sample response is given below. This response will be in JSON format.\r\n<br><br>**Response**<br>\r\n```\r\n{'PRODUCTS': ['011NSETEST', '021NSETEST', '031NSETEST', '041NSETEST', '051NSETEST', '061NSETEST', '071NSETEST', '081NSETEST', '091NSETEST', '101NSETEST', '111NSETEST', '121NSETEST', '131NSETEST', '141NSETEST', '151NSETEST', '161NSETEST', '171NSETEST', '181NSETEST', 'AARTIIND', 'ABB', 'ABBOTINDIA', 'ABCAPITAL', 'ABFRL', 'ACC', 'ADANIENT', 'ADANIPORTS', 'ALKEM', 'AMBUJACEM', 'APOLLOHOSP', 'APOLLOTYRE', 'ASHOKLEY', 'ASIANPAINT', 'ASTRAL', 'ATUL', 'AUBANK', 'AUROPHARMA', 'AXISBANK', 'BAJAJ-AUTO', 'BAJAJFINSV', 'BAJFINANCE', 'BALKRISIND', 'BALRAMCHIN', 'BANDHANBNK', 'BANKBARODA', 'BANKNIFTY', 'COLPAL', 'CONCOR', 'COROMANDEL', 'CROMPTON', 'CUB', 'CUMMINSIND', 'DABUR', 'DALBHARAT', 'DEEPAKNTR', 'DIVISLAB', 'DIXON', 'DLF', 'DRREDDY', 'EICHERMOT', 'ESCORTS', 'EXIDEIND', 'FEDERALBNK', 'FINNIFTY', 'GAIL', 'GLENMARK', 'GMRINFRA', 'GNFC', 'GODREJCP', 'GODREJPROP', 'GRANULES', 'GRASIM', 'GUJGASLTD', 'HAL', 'HAVELLS', 'HCLTECH', 'HDFCAMC', 'RELIANCE', 'SAIL', 'SBICARD', 'SBILIFE', 'SBIN', 'SHREECEM', 'SHRIRAMFIN', 'SIEMENS', 'SRF', 'SUNPHARMA', 'SUNTV', 'SYNGENE', 'TATACHEM', 'TATACOMM', 'TATACONSUM', 'TATAMOTORS', 'TATAPOWER', 'TATASTEEL', 'TCS', 'TECHM', 'TITAN', 'TORNTPHARM', 'TRENT', 'TVSMOTOR', 'UBL', 'ULTRACEMCO', 'UNITDSPR', 'UPL', 'VEDL', 'VOLTAS', 'WIPRO', 'ZYDUSLIFE']} \r\n```\r\n\r\n---\r\n## GetExpiryDates:\r\nThis function will returns array of Expiry Dates (e.g. 25JUN2020, 30JUL2020, etc.) as per the parameter provided. Below is the sample code to get expiry dates:\r\n<br><br>**Syntax:**<br>\r\n```\r\nimport gfdl_rest as rs\r\n\r\napi= rs.GetExpiryDates('<ENDPOINT>', '<ENTER_API_KEY>', xml=False, format_csv=False)\r\nresult = api.Get_ExpiryDates('Exchange','Product')\r\nprint(result)\r\n```\r\n<br>**Example**\r\n```\r\nimport gfdl_rest as rs\r\n\r\napi= rs.GetExpiryDates('<ENDPOINT>', '<ENTER_API_KEY>', xml=False, format_csv=False)\r\nresult = api.Get_ExpiryDates('NFO','NIFTY')\r\nprint(result)\r\n```\r\nAs a response to above call, client will get the list of expiry dates for provided exchange. <br> Sample reponse is given below. This response will be in JSON format.\r\n<br><br>**Response**<br>\r\n```\r\n{'EXPIRYDATES': ['22AUG2024', '29AUG2024', '05SEP2024', '12SEP2024', '19SEP2024', '26SEP2024', '31OCT2024', '26DEC2024', '27MAR2025', '26JUN2025', '24DEC2025', '25JUN2026', '31DEC2026', '24JUN2027', '30DEC2027', '29JUN2028', '28DEC2028', '28JUN2029']} \r\n```\r\n\r\n---\r\n## GetOptionTypes:\r\nThis function will returns list of Option Types (e.g. CE, PE, etc.) as per the parameter provided. Below is the sample code to get expiry dates:\r\n<br><br>**Syntax:**<br>\r\n```\r\nimport gfdl_rest as rs\r\n\r\napi= rs.GetOptionTypes('<ENDPOINT>', '<ENTER_API_KEY>', xml=False, format_csv=False)\r\nresult = api.Get_OptionTypes('Exchange')\r\nprint(result)\r\n```\r\n<br>**Example**\r\n```\r\nimport gfdl_rest as rs\r\n\r\napi= rs.GetOptionTypes('<ENDPOINT>', '<ENTER_API_KEY>', xml=False, format_csv=False)\r\nresult = api.Get_OptionTypes('NFO')\r\nprint(result)\r\n```\r\n\t\r\nAs a response to above call, client will get the list of option types for provided exchange. <br>Sample response is given below. This response will be in JSON format.\r\n<br><br>**Response**<br>\r\n``` \r\n{'OPTIONTYPES': ['FF', 'XX', 'CE', 'PE']} \r\n```\r\n---  \r\n## GetStrikePrices:\r\nThis function will returns list of Strike Prices (e.g. 10000, 11000, 75.5, etc.) as per the provided parameter. Below is the sample code to get expiry dates:\r\n<br><br>**Syntax:**<br>\r\n```\r\nimport gfdl_rest as rs\r\n\r\napi= rs.GetStrikePrices('<ENDPOINT>', '<ENTER_API_KEY>', xml=False, format_csv=False)\r\nresult = api.Get_StrikePrices(\u2018Exchange\u2019)\r\n print(result)\r\n```\r\n <br> **Example**\r\n```\r\nimport gfdl_rest as rs\r\n\r\napi= rs.GetStrikePrices('<ENDPOINT>', '<ENTER_API_KEY>', xml=False, format_csv=False)\r\nresult = api.Get_StrikePrices('NFO')\r\nprint(result)\r\n```\r\n\r\nAs a response to above call, client will get the list of strike prices for provided exchange. <br> Sample reponse is given below. This response will be in JSON format.\r\n<br><br>**Response**<br>\r\n```\r\n{'STRIKEPRICES': ['0', '5200', '5300', '5400', '5500', '5600', '5700', '5800', '5900', '6000', '6100', '6200', '6300', '6400', '6500', '6600', '6700', '6800', '6900', '7000', '7100', '7200', '7300', '7400', '7500', '7600', '7700', '7800', '7900', '8000', '8100', '8200', '8300', '8400', '8500', '8600', '8700', '8800', '8900', '9000', '9100', '9200', '9300', '9400', '9500', '9600', '9700', '9800', '9900', '10000', '10100', '10200', '10300', '10400', '10500', '10600', '10700', '10800', '10900', '11000', '11100', '11200', '11300', '11400', '11500', '11600', '11700', '11800', '11900', '12000', '12100', '12200', '12300', '12400', '12500', '12600', '12700', '12800', '12900', '13000', '13100', '13200', '13300', '13400', '13500', '13600', '13700', '13800', '13900', '14000', '14100', '14200', '14300', '14400', '14500', '14600', '14700', '14800', '15000', '15500', '16000', '16500', '16650', '16700', '16750', '16800', '16850', '16900', '16950', '17000', '17050', '17100', '17150', '17200', '17250', '17300', '17350', '17400', '17450', '17500', '17550', '17600', '17650', '17700', '17750', '17800', '17850', '17900', '17950', '18000', '18050', '18100', '18150', '18200', '18250', '18300', '18350', '18400', '18450', '18500', '18550', '18600', '18650', '18700', '18750', '18800', '18850', '18900', '18950', \u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026'25300', '25350', '25400', '25450', '25500', '25550', '25600', '25650', '25700', '25750', '25800', '25850', '25900', '25950', '26000', '26050', '26100', '26150', '26200', '26250', '26300', '26350', '26400', '26450', '26500', '26550', '26600', '26650', '26700', '26750', '26800', '26850', '26900', '26950', '27000', '27050', '27100', '27150', '27200', '27250', '27300', '27350', '27400', '27450', '27500', '27550', '27600', '27650', '27700', '27750', '27800', '27850', '27900', '27950', '28000', '28050', '28100', '28150', '28200', '28250', '28300', '28350', '28400', '28450', '28500', '28550', '28600', '28650', '28700', '28750', '28800', '28850', '28900', '28950', '29000', '29050', '29100', '29150', '29200', '29250', '29300', '29350', '29400', '29450', '29500', '29550', '29600', '29650', '29700', '29750', '29800', '29850', '29900', '29950', '30000', '30050', '30100', '30150', '30200', '30250', '31000', '32000', '33000', '34000', '35000', '36000', '37000', '38000', '39000', '40000']}\r\n ```\r\n\r\n---  \r\n\r\n## GetServerInfo:\r\nThis function will returns information about server where connection is made. Below is the sample code to get ServerInfo:\r\n<br><br>**Syntax:**<br>\r\n```\r\nimport gfdl_rest as rs\r\n\r\napi= rs.GetServerInfo('<ENDPOINT>', '<ENTER_API_KEY>', xml=False, format_csv=False)\r\nresult = api.Get_ServerInfo()\r\nprint(result)\r\n```\r\n<br>**Example**\r\n```\r\nimport gfdl_rest as rs\r\n\r\napi= rs.GetServerInfo('<ENDPOINT>', '<ENTER_API_KEY>', xml=False, format_csv=False)\r\nresult = api.Get_ServerInfo()\r\nprint(result)\r\n```  \r\n\r\nAs a response to above call, client will get the serverID where client is connected. <br>Sample response is given below. This response will be in JSON format.\r\n<br><br>**Response**<br>\r\n```\r\n{'ServerID': '8040-A7'}\r\n ```\r\n---  \r\n## GetLimitation:\r\nThis function will returns user account information (e.g. which functions are allowed, Exchanges allowed, symbol limit, etc.) Below is the sample code to get limitation:\r\n<br><br>**Syntax:**<br>\r\n```\r\nimport gfdl_rest as rs\r\n\r\napi= rs.GetLimitation('<ENDPOINT>', '<ENTER_API_KEY>', xml=False, format_csv=False)\r\nresult = api.Get_Limitation()\r\nprint(result)\r\n```\r\n<br>**Example**\r\n```\r\nimport gfdl_rest as rs\r\n\r\napi= rs.GetLimitation('<ENDPOINT>', '<ENTER_API_KEY>', xml=False, format_csv=False)\r\nresult = api.Get_Limitation()\r\nprint(result)\r\n```\r\nAs a response to above call, client will get the serverID where client is connected. <br>Sample response is given below. This response will be in JSON format.\r\n<br><br>**Response**<br>\r\n```\r\n{'AllowedBandwidthPerHour': -1.0, 'AllowedCallsPerHour': -1, 'AllowedCallsPerMonth': -1, 'AllowedBandwidthPerMonth': -1.0, 'ExpirationDate': 1727720999000, 'Enabled': True, 'AllowedExchanges': [{'AllowedInstruments': -1, 'UsedInstrumentsInThisSession': None, 'DataDelay': 0, 'ExchangeName': 'BFO'}, {'AllowedInstruments': -1, 'UsedInstrumentsInThisSession': None, 'DataDelay': 0, 'ExchangeName': 'BSE'}, {'AllowedInstruments': -1, 'UsedInstrumentsInThisSession': None, 'DataDelay': 0, 'ExchangeName': 'BSE_DEBT'}, {'AllowedInstruments': -1, 'UsedInstrumentsInThisSession': None, 'DataDelay': 0, 'ExchangeName': 'BSE_IDX'}, {'AllowedInstruments': -1, 'UsedInstrumentsInThisSession': None, 'DataDelay': 0, 'ExchangeName': 'CDS'}, {'AllowedInstruments': -1, 'UsedInstrumentsInThisSession': None, 'DataDelay': 0, 'ExchangeName': 'MCX'}, {'AllowedInstruments': -1, 'UsedInstrumentsInThisSession': None, 'DataDelay': 0, 'ExchangeName': 'NFO'}, {'AllowedInstruments': -1, 'UsedInstrumentsInThisSession': None, 'DataDelay': 0, 'ExchangeName': 'NSE'}, {'AllowedInstruments': -1, 'UsedInstrumentsInThisSession': None, 'DataDelay': 0, 'ExchangeName': 'NSE_IDX'}], 'AllowedFunctions': [{'FunctionName': 'GetExchangeMessages', 'IsEnabled': True}, {'FunctionName': 'GetExchangeSnapshot', 'IsEnabled': True}, {'FunctionName': 'GetExchangeSnapshotAfterMarket', 'IsEnabled': True}, {'FunctionName': 'GetHistory', 'IsEnabled': True}, {'FunctionName': 'GetHistoryGreeks', 'IsEnabled': True}, {'FunctionName': 'GetLastQuote', 'IsEnabled': True}, {'FunctionName': 'GetLastQuoteArray', 'IsEnabled': True}, {'FunctionName': 'GetLastQuoteArrayOptionGreeks', 'IsEnabled': True}, {'FunctionName': 'GetLastQuoteArrayShort', 'IsEnabled': True}, {'FunctionName': 'GetLastQuoteOptionChain', 'IsEnabled': True}, {'FunctionName': 'GetLastQuoteOptionChainWithGreeks', 'IsEnabled': True}, {'FunctionName': 'GetLastQuoteOptionGreeks', 'IsEnabled': True}, {'FunctionName': 'GetLastQuoteShort', 'IsEnabled': True}, {'FunctionName': 'GetMarketMessages', 'IsEnabled': True}, {'FunctionName': 'GetSnapshot', 'IsEnabled': True}, {'FunctionName': 'GetTopGainersLosers', 'IsEnabled': True}], 'HistoryLimitation': {'TickEnabled': True, 'DayEnabled': True, 'WeekEnabled': True, 'MonthEnabled': True, 'MaxEOD': 100000, 'MaxIntraday': 44, 'MaxTicks': 7, 'Hour_2Enabled': True, 'Hour_3Enabled': True, 'Hour_4Enabled': True, 'Hour_6Enabled': True, 'Hour_8Enabled': True, 'Hour_12Enabled': True, 'Minute_3Enabled': True, 'Minute_4Enabled': True, 'Minute_6Enabled': True, 'Minute_12Enabled': True, 'Minute_20Enabled': True, 'OnlyAfterMarket': False, 'Minute_1Enabled': True, 'Minute_2Enabled': True, 'Minute_5Enabled': True, 'Minute_10Enabled': True, 'Minute_15Enabled': True, 'Minute_30Enabled': True, 'Hour_1Enabled': True}, 'SubscribeSnapshotLimitation': None, 'GetSnapshotLimitation': None, 'GetExchangeSnapshotLimitation': {'DayEnabled': True, 'Minute_1Enabled': True, 'Minute_2Enabled': True, 'Minute_5Enabled': True, 'Minute_10Enabled': True, 'Minute_15Enabled': True, 'Minute_30Enabled': True, 'Hour_1Enabled': True}, 'GetExchangeSnapshotInstrumentTypeLimitation': None} \r\n```\r\n---\r\n## GetMarketMessages:\r\nThis function will returns array of last market messages related to selected exchange. Below is the sample code to get limitation:\r\n<br><br>**Syntax:**<br>\r\n```\r\nimport gfdl_rest as rs\r\n\r\napi= rs.GetMarketMessages('<ENDPOINT>', '<ENTER_API_KEY>', xml=False, format_csv=False)\r\nresult = api.Get_MarketMessages('Exchange')\r\nprint(result)\r\n```  \r\n<br>**Example**\r\n```\r\nimport gfdl_rest as rs\r\n\r\napi= rs.GetMarketMessages('<ENDPOINT>', '<ENTER_API_KEY>', xml=False, format_csv=False)\r\nresult = api.Get_MarketMessages('NFO')\r\nprint(result)\r\n```  \r\n\r\nAs a response to above call, client will get the market messages. <br>Sample response is given below. This response will be in JSON format.\r\n<br><br>**Response**<br>\r\n```\r\n{'EXCHANGE': 'NFO', 'MESSAGES': [{'SESSIONID': 0, 'MARKETTYPE': 'Normal Market Open', 'SERVERTIME': 1724211900000}]} ```\r\n---  \r\n## GetExchangeMessages:\r\nThis function will returns array of last exchange messages related to selected exchange. Below is the sample code to get limitation:\r\n<br><br>**Syntax:**<br>\r\n```\r\nimport gfdl_rest as rs\r\n\r\napi= rs.GetExchangeMessages('<ENDPOINT>', '<ENTER_API_KEY>', xml=False, format_csv=False)\r\nresult = api.Get_Exchange_Messages(\u2018Exchange\u2019)\r\nprint(result)\r\n```\r\n**Example**\r\n```\r\nimport gfdl_rest as rs\r\n\r\napi= rs.GetExchangeMessages('<ENDPOINT>', '<ENTER_API_KEY>', xml=False, format_csv=False)\r\nresult = api.Get_Exchange_Messages('NFO')\r\nprint(result)\r\n```\r\n\r\nAs a response to above call, client will get the market messages. <br> Sample response is given below. This response will be in JSON format.\r\n<br><br>**Response**<br>\r\n```\r\n{'EXCHANGE': 'NFO', 'MESSAGES': []} \r\n```\r\n---\r\n## GetLastQuoteOptionChain:\r\nThis function will returns LastTradePrice of entire OptionChain of requested underlying. Below is the sample code to get Last Quote Option Chain:\r\n<br><br>**Syntax:**<br>\r\n```\r\nimport gfdl_rest as rs\r\n\r\napi= rs.GetLastQuoteOptionChain('<ENDPOINT>', '<ENTER_API_KEY>', xml=False, format_csv=False)\r\nresult = api.Get_LastQuoteOptionChain(\u2018Exchange\u2019, \u2018Product\u2019,'ExpiryDate <Optional>','OptionType <Optional>\u2019, \u2018StrikePrice <Optional>')\r\nprint(result)\r\n```\r\n<br>**Example**\r\n```\r\nimport gfdl_rest as rs\r\n\r\napi= rs.GetLastQuoteOptionChain('<ENDPOINT>', '<ENTER_API_KEY>', xml=False, format_csv=False)\r\nresult = api.Get_LastQuoteOptionChain('NFO','NIFTY','22AUG2024','CE')\r\nprint(result)\r\n```\r\n<br>**Response**<br>\r\nAs a response to above call, client will get LastTradePrice of entire OptionChain. Sample reponse in JSON format can be downloaded from [here.](https://globaldatafeeds.in/resources/GetLastQuoteOptionChainResponse_JSON.zip)\r\n\r\n---\r\n## GetExchangeSnapshot:\r\nThis function will return entire Exchange Snapshot as per Period & Periodicity.Below is the sample code to get Last Quote Option Chain:\r\n<br><br>**Syntax:**<br>\r\n```\r\nimport gfdl_rest as rs\r\n\r\napi= rs.GetExchangeSnapshot('<ENDPOINT>', '<ENTER_API_KEY>', xml=False, format_csv=False)\r\nresult = api.Get_ExchangeSnapshot(\u2018Exchange\u2019,' Periodicity',' Period',\u2019InstrumentType <Optional>\u2019,\u2019From <Optional>\u2019,\u2019To  <Optional>\u2019,\u2019NonTraded [true/false]<Optional>\u2019)\r\nprint(result)\r\n```\r\n<br>**Example**\r\n```\r\nimport gfdl_rest as rs\r\n\r\napi= rs.GetExchangeSnapshot('<ENDPOINT>', '<ENTER_API_KEY>', xml=False, format_csv=False)\r\nresult = api.Get_ExchangeSnapshot('NFO','Minute','1')\r\nprint(result)\r\n```  \r\n<br>**Response**<br>\r\n\r\nAs a response to above call, client will get entire Exchange Snapshot as per Period & Periodicity. Sample response of 1 minute ExchangeSnapshot in JSON format can be downloaded from [here.](https://globaldatafeeds.in/resources/GetExchangeSnapshot_1Min_JSON.zip)\r\n---\r\n## GetLastQuoteOptionGreeks:\r\nThis function will return Last Traded Option Greek values of Single Symbol. Below is the sample code to get this data:\r\n<br><br>**Syntax:**<br>\r\n```\r\nimport gfdl_rest as rs\r\n\r\napi= rs.GetLastQuoteOptionGreeks('<ENDPOINT>', '<ENTER_API_KEY>', xml=False, format_csv=False)\r\nresult = api.Get_LastQuoteOptionGreeks('Exchange','Token')\r\nprint(result)\r\n```\r\n<br>**Example**\r\n```\r\nimport gfdl_rest as rs\r\n\r\napi= rs.GetLastQuoteOptionGreeks('<ENDPOINT>', '<ENTER_API_KEY>', xml=False, format_csv=False)\r\nresult = api.Get_LastQuoteOptionGreeks('NFO','57660')\r\nprint(result)\r\n```  \r\n<br>**Response**<br>\r\n\r\n```\r\n{ \u201cAVERAGETRADEDPRICE\u201d: 871.68, \u201cBUYPRICE\u201d: 870.1, \u201cBUYQTY\u201d: 1, \u201cCLOSE\u201d: 870.9, \u201cEXCHANGE\u201d: \u201cMCX\u201d, \u201cHIGH\u201d: 875, \u201cINSTRUMENTIDENTIFIER\u201d: \u201cXXX_MCXSCHANADLH_25Jun2015_XX_X\u201d, \u201cLASTTRADEPRICE\u201d: 875, \u201cLASTTRADEQTY\u201d: 2, \u201cLASTTRADETIME\u201d: 1391863200, \u201cLOW\u201d: 868.1, \u201cOPEN\u201d: 871.2, \u201cOPENINTEREST\u201d: 221, \u201cPREOPEN\u201d: false, \u201cQUOTATIONLOT\u201d: 100, \u201cSELLPRICE\u201d: 874, \u201cSELLQTY\u201d: 1, \u201cSERVERTIME\u201d: 1391821719, \u201cTOTALQTYTRADED\u201d: 17, \u201cVALUE\u201d: 1481850}\r\n```\r\nToken number can be get by using **GetInstruments** or **GetInstrumentsOnSearch** request. How to use these funcation can be find [here] \r\n(https://globaldatafeeds.in/global-datafeeds-apis/global-datafeeds-apis/rest-api-documentation/function-getinstruments/).\r\n\r\n---\r\n## GetLastQuoteArrayOptionGreeks:\r\nThis function will returns Last Traded Option Greek values of multiple Symbols \u2013 max 25 in single call. Below is the sample code to get this data:\r\n<br><br>**Syntax:**<br>\r\n```\r\nimport gfdl_rest as rs\r\n\r\napi= rs.GetLastQuoteArrayOptionGreeks('<ENDPOINT>', '<ENTER_API_KEY>', xml=False, format_csv=False)\r\nresult = api.Get_LastQuoteArrayOptionGreeks('Exchange','Token1+Token2+Token3\u2019)\r\nprint(result)\r\n```\r\n<br>**Example**\r\n```\r\nimport gfdl_rest as rs\r\n\r\napi= rs.GetLastQuoteArrayOptionGreeks('<ENDPOINT>', '<ENTER_API_KEY>', xml=False, format_csv=False)\r\nresult = api.Get_LastQuoteArrayOptionGreeks('NFO','57660+57661+57662')\r\nprint(result)\r\n```  \r\n<br>**Response**<br>\r\n\r\n```\r\n[{ \u201cEXCHANGE\u201d: \u201cNFO\u201d, \u201cTOKEN\u201d: \u201c39489\u201d, \u201cTIMESTAMP\u201d: 1625738399000, \u201cIV\u201d: 1.46, \u201cDELTA\u201d: 1, \u201cTHETA\u201d: -16.66, \u201cVEGA\u201d: 0, \u201cGAMMA\u201d: 0, \u201cIVVWAP\u201d: 0.12, \u201cVANNA\u201d: -2666.33, \u201cCHARM\u201d: 57226592, \u201cSPEED\u201d: 0, \u201cZOMMA\u201d: 0, \u201cCOLOR\u201d: 4.99, \u201cVOLGA\u201d: 50545.55, \u201cVETA\u201d: 1154302720, \u201cTHETAGAMMARATIO\u201d: -719606.5, \u201cTHETAVEGARATIO\u201d: -2146264.5, \u201cDTR\u201d: -0.06 }, { \u201cEXCHANGE\u201d: \u201cNFO\u201d, \u201cTOKEN\u201d: \u201c39487\u201d, \u201cTIMESTAMP\u201d: 1625738395000, \u201cIV\u201d: 3.16, \u201cDELTA\u201d: 0.98, \u201cTHETA\u201d: -4821.25, \u201cVEGA\u201d: 0.01, \u201cGAMMA\u201d: 0, \u201cIVVWAP\u201d: 0.16, \u201cVANNA\u201d: -1.78, \u201cCHARM\u201d: 12360.09, \u201cSPEED\u201d: 0, \u201cZOMMA\u201d: 0, \u201cCOLOR\u201d: 9.14, \u201cVOLGA\u201d: 43.89, \u201cVETA\u201d: 382011.25, \u201cTHETAGAMMARATIO\u201d: -3384442, \u201cTHETAVEGARATIO\u201d: -693573.19, \u201cDTR\u201d: 0 }]\r\n```\r\nToken number can be get by using **GetInstruments** or **GetInstrumentsOnSearch** request. How to use these funcation can be find [here](https://globaldatafeeds.in/global-datafeeds-apis/global-datafeeds-apis/rest-api-documentation/function-getinstruments/).\r\n\r\n---\r\n## GetLastQuoteOptionGreeksChain:\r\nThis function will returns Returns Last Traded Option Greek values of entire OptionChain of requested underlying. Below is the sample code to get this data:\r\n<br><br>**Syntax:**<br>\r\n```\r\nimport gfdl_rest as rs\r\n\r\napi= rs.GetLastQuoteOptionGreeksChain('<ENDPOINT>', '<ENTER_API_KEY>', xml=False, format_csv=False)\r\nresult = api.Get_LastQuoteOptionGreeksChain(\u2018Exchange\u2019,' Product ','ExpiryDate <Optional>','OptionType <Optional>',\u2019StrikePrice <Optional>\u2019)\r\nprint(result)\r\n```\r\n<br>**Example**\r\n```\r\nimport gfdl_rest as rs\r\n\r\napi= rs.GetLastQuoteOptionGreeksChain('<ENDPOINT>', '<ENTER_API_KEY>', xml=False, format_csv=False)\r\nresult = api.Get_LastQuoteOptionGreeksChain('NFO','NIFTY','22AUG2024','CE')\r\nprint(result)\r\n```  \r\n<br>**Response**<br>\r\n\r\nAs a response to above call, client will get Last Traded Option Greek values of entire OptionChain. Sample reponse in JSON format can be downloaded from [here.](https://globaldatafeeds.in/resources/OptionGreeksChainWithQuoteResponse_JSON.zip)\r\n\r\n---\r\n---\r\n## GetHistoryGreeks:\r\nThis function will returns Returns Last Traded History of Greeks values of entire InstrumentIdentifier of requested underlying. Below is the sample code to get this data:\r\n<br><br>**Syntax:**<br>\r\n```\r\nimport gfdl_rest as rs\r\n\r\napi= rs.GetHistoryGreeks('<ENDPOINT>', '<ENTER_API_KEY>', xml=False, format_csv=False)\r\nresult = api.GetHistory_Greeks(\u2018Exchange\u2019,' InstrumentIdentifier ','isShortIdentifier <Optional>','Max <optional>',\u2019From <Optional>\u2019,\u2019To  <Optional>\u2019)\r\nprint(result)\r\n```\r\n<br>**Example**\r\n```\r\nimport gfdl_rest as rs\r\n\r\napi= rs.GetHistoryGreeks('<ENDPOINT>', '<ENTER_API_KEY>', xml=False, format_csv=False)\r\nresult = api.GetHistory_Greeks('NFO','NIFTY05SEP2425000CE','true','10')\r\nprint(result)\r\n```  \r\n<br>**Response**<br>\r\n```  \r\n<OptionGreeksHistory xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\">\r\n<SID>SID: .1 Q:1</SID>\r\n<Value Token=\"38687\" IV=\"0.12\" Delta=\"0.85\" Theta=\"-9.98\" Vega=\"5.83\" Gamma=\"0\" IVVwap=\"0.12\" Vanna=\"-0.02\" Charm=\"0.04\" Speed=\"-0\" Zomma=\"0\" Color=\"-0\" Volga=\"0.47\" Veta=\"-1.79\" ThetaGammaRatio=\"-13579.67\" ThetaVegaRatio=\"-1.71\" DTR=\"-0.09\" Timestamp=\"09-02-2024 11:34:33\"/>\r\n<Value Token=\"38687\" IV=\"0.12\" Delta=\"0.85\" Theta=\"-9.98\" Vega=\"5.82\" Gamma=\"0\" IVVwap=\"0.12\" Vanna=\"-0.02\" Charm=\"0.04\" Speed=\"-0\" Zomma=\"0\" Color=\"-0\" Volga=\"0.47\" Veta=\"-1.79\" ThetaGammaRatio=\"-13590.36\" ThetaVegaRatio=\"-1.71\" DTR=\"-0.09\" Timestamp=\"09-02-2024 11:34:30\"/>\r\n<Value Token=\"38687\" IV=\"0.12\" Delta=\"0.85\" Theta=\"-9.77\" Vega=\"5.76\" Gamma=\"0\" IVVwap=\"0.12\" Vanna=\"-0.02\" Charm=\"0.04\" Speed=\"-0\" Zomma=\"0\" Color=\"-0\" Volga=\"0.48\" Veta=\"-1.79\" ThetaGammaRatio=\"-13305.99\" ThetaVegaRatio=\"-1.7\" DTR=\"-0.09\" Timestamp=\"09-02-2024 11:34:29\"/>\r\n<Value Token=\"38687\" IV=\"0.12\" Delta=\"0.85\" Theta=\"-9.82\" Vega=\"5.78\" Gamma=\"0\" IVVwap=\"0.12\" Vanna=\"-0.02\" Charm=\"0.04\" Speed=\"-0\" Zomma=\"0\" Color=\"-0\" Volga=\"0.48\" Veta=\"-1.79\" ThetaGammaRatio=\"-13338.52\" ThetaVegaRatio=\"-1.7\" DTR=\"-0.09\" Timestamp=\"09-02-2024 11:34:25\"/>\r\n<Value Token=\"38687\" IV=\"0.12\" Delta=\"0.85\" Theta=\"-9.91\" Vega=\"5.8\" Gamma=\"0\" IVVwap=\"0.12\" Vanna=\"-0.02\" Charm=\"0.04\" Speed=\"-0\" Zomma=\"0\" Color=\"-0\" Volga=\"0.47\" Veta=\"-1.79\" ThetaGammaRatio=\"-13497.78\" ThetaVegaRatio=\"-1.71\" DTR=\"-0.09\" Timestamp=\"09-02-2024 11:34:20\"/>\r\n<Value Token=\"38687\" IV=\"0.12\" Delta=\"0.85\" Theta=\"-9.86\" Vega=\"5.79\" Gamma=\"0\" IVVwap=\"0.12\" Vanna=\"-0.02\" Charm=\"0.04\" Speed=\"-0\" Zomma=\"0\" Color=\"-0\" Volga=\"0.47\" Veta=\"-1.79\" ThetaGammaRatio=\"-13421.44\" ThetaVegaRatio=\"-1.7\" DTR=\"-0.09\" Timestamp=\"09-02-2024 11:34:18\"/>\r\n<Value Token=\"38687\" IV=\"0.12\" Delta=\"0.85\" Theta=\"-9.96\" Vega=\"5.82\" Gamma=\"0\" IVVwap=\"0.12\" Vanna=\"-0.02\" Charm=\"0.04\" Speed=\"-0\" Zomma=\"0\" Color=\"-0\" Volga=\"0.47\" Veta=\"-1.79\" ThetaGammaRatio=\"-13543.96\" ThetaVegaRatio=\"-1.71\" DTR=\"-0.09\" Timestamp=\"09-02-2024 11:34:16\"/>\r\n<Value Token=\"38687\" IV=\"0.12\" Delta=\"0.85\" Theta=\"-9.84\" Vega=\"5.78\" Gamma=\"0\" IVVwap=\"0.12\" Vanna=\"-0.02\" Charm=\"0.04\" Speed=\"-0\" Zomma=\"0\" Color=\"-0\" Volga=\"0.48\" Veta=\"-1.79\" ThetaGammaRatio=\"-13400.34\" ThetaVegaRatio=\"-1.7\" DTR=\"-0.09\" Timestamp=\"09-02-2024 11:34:15\"/>\r\n<Value Token=\"38687\" IV=\"0.12\" Delta=\"0.85\" Theta=\"-9.93\" Vega=\"5.8\" Gamma=\"0\" IVVwap=\"0.12\" Vanna=\"-0.02\" Charm=\"0.04\" Speed=\"-0\" Zomma=\"0\" Color=\"-0\" Volga=\"0.47\" Veta=\"-1.79\" ThetaGammaRatio=\"-13554.81\" ThetaVegaRatio=\"-1.71\" DTR=\"-0.09\" Timestamp=\"09-02-2024 11:34:14\"/>\r\n<Value Token=\"38687\" IV=\"0.12\" Delta=\"0.86\" Theta=\"-9.75\" Vega=\"5.75\" Gamma=\"0\" IVVwap=\"0.12\" Vanna=\"-0.02\" Charm=\"0.04\" Speed=\"-0\" Zomma=\"0\" Color=\"-0\" Volga=\"0.48\" Veta=\"-1.79\" ThetaGammaRatio=\"-13319.47\" ThetaVegaRatio=\"-1.7\" DTR=\"-0.09\" Timestamp=\"09-02-2024 11:34:06\"/>\r\n</OptionGreeksHistory>\r\n```  \r\n---\r\n# Parameter List\r\n| Parameter | Description |\r\n|--------------|----------|\r\n|**Exchange**|Name of supported exchange.|\r\n|**InstrumentIdentifier**|Name of the symbol|\r\n|**InstrumentIdentifiers**|List of symbols names maximum 25 symbols can be added in list. |\r\n|**Unsubscribe**|Buy default subscribes to Realtime data. If [true], instrumentIdentifier is unsubscribed|\r\n|**Periodicity**|String value of required periodicity.<br>*[\u201cTICK\u201d/\u201cMINUTE\u201d/\u201cHOUR\u201d/\u201cDAY\u201d/\u201cWEEK\u201d/\u201cMONTH\u201d, default = \u201cTICK\u201d]*|\r\n|**Period**|Period for historical data. Can be applied for [MINUTE]/[HOUR]/[DAY].<br>Periodicity types *[Numerical value 1, 2, 3\u2026, default = 1]*|\r\n|**From**|It means starting timestamp for called historical data.|\r\n|**To**|It means ending timestamp for request.|\r\n|**isShortIdentifier**<br>**isShortIdentifiers**|Functions will use short instrument identifier format if set as [true]. Example of ShortIdentifiers are NIFTY25MAR21FUT, RELIANCE25MAR21FUT, NIFTY25MAR2115000CE, etc.|\r\n|**MAX**|It is the limit returned data records.|\r\n|**Product**|Name of supported Product. To get the list of product refer to the above **Product** function.|\r\n|**Expiry**|Expiry dates for the exchange. To get the list of expiries refer to the above **Expiry** function.|\r\n|**OptionType**|Expiry dates for the exchange. To get the list of OptionType refer to the above **OptionType** function.|\r\n|**StrikePrice**|Expiry dates for the exchange. To get the list of StrikePrice refer to the above **StrikePrice** function.|\r\n|**Token**<br>**Tokens**|Token numbers of instruments. <br> To get the token refer to the above **GetInstruments** or **GetInstrumentsOnSearch** functions.|\r\n|**userTag**|It will be string which returns with response.|\r\n|**onlyActive**|By default, function will return only active instruments.<br>[true]/[false], default = [true]|\r\n|**nonTraded**|When true, results are sent with data of even non traded instruments. When false, data of only traded instruments during that period is sent. <Optional>, default value is \u201cfalse\u201d|\r\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "Beta Package to implement REST API of Global Datafeeds",
    "version": "1.0.3",
    "project_urls": null,
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "edf91ce027ca05387f6ebe1db946d4a6aae835c5cfeb29b13b39608af794d99a",
                "md5": "610c431f3813c45c7dbf11f219f50ffc",
                "sha256": "14d9a6842aa9b3153f1df0ff762872ca66e18e2edaedbb3aa86d3eeebc594ca5"
            },
            "downloads": -1,
            "filename": "gfdl_rest-1.0.3-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "610c431f3813c45c7dbf11f219f50ffc",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 23246,
            "upload_time": "2024-11-11T05:42:23",
            "upload_time_iso_8601": "2024-11-11T05:42:23.464958Z",
            "url": "https://files.pythonhosted.org/packages/ed/f9/1ce027ca05387f6ebe1db946d4a6aae835c5cfeb29b13b39608af794d99a/gfdl_rest-1.0.3-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "3bacd85610bd737477bd3fb37250d5b549f0b69043178bd67015a95d93c56bd6",
                "md5": "51db4fd6065c53f48e2d77541676aec5",
                "sha256": "fd2a1f77603a432532115d8178a220c65448101b5f963f7488a5fda621b91d9a"
            },
            "downloads": -1,
            "filename": "gfdl_rest-1.0.3.tar.gz",
            "has_sig": false,
            "md5_digest": "51db4fd6065c53f48e2d77541676aec5",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 34512,
            "upload_time": "2024-11-11T05:42:25",
            "upload_time_iso_8601": "2024-11-11T05:42:25.546247Z",
            "url": "https://files.pythonhosted.org/packages/3b/ac/d85610bd737477bd3fb37250d5b549f0b69043178bd67015a95d93c56bd6/gfdl_rest-1.0.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-11-11 05:42:25",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "gfdl-rest"
}
        
Elapsed time: 0.75792s