Statement
dhanhq._statement
Classes
Statement
Statement(dhan_context)
Functions
get_trade_book
get_trade_book(order_id=None)
Retrieve a list of all trades executed in a day.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
order_id |
str
|
The ID of the specific order to retrieve trades for. |
None
|
Returns:
Name | Type | Description |
---|---|---|
dict |
The response containing trade book data. |
get_trade_history
get_trade_history(from_date, to_date, page_number=0)
Retrieve the trade history for a specific date range.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
from_date |
str
|
The start date for the trade history. |
required |
to_date |
str
|
The end date for the trade history. |
required |
page_number |
int
|
The page number for pagination. |
0
|
Returns:
Name | Type | Description |
---|---|---|
dict |
The response containing trade history data. |
ledger_report
ledger_report(from_date, to_date)
Retrieve the ledger details for a specific date range.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
from_date |
str
|
The start date for the trade history. |
required |
to_date |
str
|
The end date for the trade history. |
required |
Returns:
Name | Type | Description |
---|---|---|
dict |
The response containing ledger details data. |