Documentation
¶
Index ¶
- func Bool(b bool) param.Opt[bool]
- func BoolPtr(v bool) *bool
- func DefaultClientOptions() []option.RequestOption
- func File(rdr io.Reader, filename string, contentType string) file
- func Float(f float64) param.Opt[float64]
- func FloatPtr(v float64) *float64
- func Int(i int64) param.Opt[int64]
- func IntPtr(v int64) *int64
- func Opt[T comparable](v T) param.Opt[T]
- func Ptr[T any](v T) *T
- func String(s string) param.Opt[string]
- func StringPtr(v string) *string
- func Time(t time.Time) param.Opt[time.Time]
- func TimePtr(v time.Time) *time.Time
- type CasGeneratorService
- type CasParserCamsKfintechParams
- type CasParserCdslParams
- type CasParserNsdlParams
- type CasParserService
- func (r *CasParserService) CamsKfintech(ctx context.Context, body CasParserCamsKfintechParams, ...) (res *UnifiedResponse, err error)
- func (r *CasParserService) Cdsl(ctx context.Context, body CasParserCdslParams, opts ...option.RequestOption) (res *UnifiedResponse, err error)
- func (r *CasParserService) Nsdl(ctx context.Context, body CasParserNsdlParams, opts ...option.RequestOption) (res *UnifiedResponse, err error)
- func (r *CasParserService) SmartParse(ctx context.Context, body CasParserSmartParseParams, ...) (res *UnifiedResponse, err error)
- type CasParserSmartParseParams
- type Client
- func (r *Client) Delete(ctx context.Context, path string, params any, res any, ...) error
- func (r *Client) Execute(ctx context.Context, method string, path string, params any, res any, ...) error
- func (r *Client) Get(ctx context.Context, path string, params any, res any, ...) error
- func (r *Client) Patch(ctx context.Context, path string, params any, res any, ...) error
- func (r *Client) Post(ctx context.Context, path string, params any, res any, ...) error
- func (r *Client) Put(ctx context.Context, path string, params any, res any, ...) error
- type Error
- type UnifiedResponse
- type UnifiedResponseDematAccount
- type UnifiedResponseDematAccountAdditionalInfo
- type UnifiedResponseDematAccountHoldings
- type UnifiedResponseDematAccountHoldingsAif
- type UnifiedResponseDematAccountHoldingsAifAdditionalInfo
- type UnifiedResponseDematAccountHoldingsAifTransaction
- type UnifiedResponseDematAccountHoldingsAifTransactionAdditionalInfo
- type UnifiedResponseDematAccountHoldingsCorporateBond
- type UnifiedResponseDematAccountHoldingsCorporateBondAdditionalInfo
- type UnifiedResponseDematAccountHoldingsCorporateBondTransaction
- type UnifiedResponseDematAccountHoldingsCorporateBondTransactionAdditionalInfo
- type UnifiedResponseDematAccountHoldingsDematMutualFund
- type UnifiedResponseDematAccountHoldingsDematMutualFundAdditionalInfo
- type UnifiedResponseDematAccountHoldingsDematMutualFundTransaction
- type UnifiedResponseDematAccountHoldingsDematMutualFundTransactionAdditionalInfo
- type UnifiedResponseDematAccountHoldingsEquity
- type UnifiedResponseDematAccountHoldingsEquityAdditionalInfo
- type UnifiedResponseDematAccountHoldingsEquityTransaction
- type UnifiedResponseDematAccountHoldingsEquityTransactionAdditionalInfo
- type UnifiedResponseDematAccountHoldingsGovernmentSecurity
- type UnifiedResponseDematAccountHoldingsGovernmentSecurityAdditionalInfo
- type UnifiedResponseDematAccountHoldingsGovernmentSecurityTransaction
- type UnifiedResponseDematAccountHoldingsGovernmentSecurityTransactionAdditionalInfo
- type UnifiedResponseDematAccountLinkedHolder
- type UnifiedResponseInsurance
- type UnifiedResponseInsuranceLifeInsurancePolicy
- type UnifiedResponseInvestor
- type UnifiedResponseMeta
- type UnifiedResponseMetaStatementPeriod
- type UnifiedResponseMutualFund
- type UnifiedResponseMutualFundAdditionalInfo
- type UnifiedResponseMutualFundLinkedHolder
- type UnifiedResponseMutualFundScheme
- type UnifiedResponseMutualFundSchemeAdditionalInfo
- type UnifiedResponseMutualFundSchemeGain
- type UnifiedResponseMutualFundSchemeTransaction
- type UnifiedResponseMutualFundSchemeTransactionAdditionalInfo
- type UnifiedResponseNp
- type UnifiedResponseNpFund
- type UnifiedResponseNpFundAdditionalInfo
- type UnifiedResponseNpLinkedHolder
- type UnifiedResponseSummary
- type UnifiedResponseSummaryAccounts
- type UnifiedResponseSummaryAccountsDemat
- type UnifiedResponseSummaryAccountsInsurance
- type UnifiedResponseSummaryAccountsMutualFunds
- type UnifiedResponseSummaryAccountsNps
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultClientOptions ¶
func DefaultClientOptions() []option.RequestOption
DefaultClientOptions read from the environment (CAS_PARSER_API_KEY, CAS_PARSER_BASE_URL). This should be used to initialize new clients.
func Opt ¶
func Opt[T comparable](v T) param.Opt[T]
Types ¶
type CasGeneratorService ¶
type CasGeneratorService struct {
Options []option.RequestOption
}
CasGeneratorService contains methods and other services that help with interacting with the CAS Parser API.
Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewCasGeneratorService method instead.
func NewCasGeneratorService ¶
func NewCasGeneratorService(opts ...option.RequestOption) (r CasGeneratorService)
NewCasGeneratorService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
type CasParserCamsKfintechParams ¶
type CasParserCamsKfintechParams struct {
// Password for the PDF file (if required)
Password param.Opt[string] `json:"password,omitzero"`
// Base64 encoded CAS PDF file (required if pdf_url not provided)
PdfFile param.Opt[string] `json:"pdf_file,omitzero" format:"base64"`
// URL to the CAS PDF file (required if pdf_file not provided)
PdfURL param.Opt[string] `json:"pdf_url,omitzero" format:"uri"`
// contains filtered or unexported fields
}
func (CasParserCamsKfintechParams) MarshalJSON ¶
func (r CasParserCamsKfintechParams) MarshalJSON() (data []byte, err error)
func (*CasParserCamsKfintechParams) UnmarshalJSON ¶
func (r *CasParserCamsKfintechParams) UnmarshalJSON(data []byte) error
type CasParserCdslParams ¶
type CasParserCdslParams struct {
// Password for the PDF file (if required)
Password param.Opt[string] `json:"password,omitzero"`
// Base64 encoded CAS PDF file (required if pdf_url not provided)
PdfFile param.Opt[string] `json:"pdf_file,omitzero" format:"base64"`
// URL to the CAS PDF file (required if pdf_file not provided)
PdfURL param.Opt[string] `json:"pdf_url,omitzero" format:"uri"`
// contains filtered or unexported fields
}
func (CasParserCdslParams) MarshalJSON ¶
func (r CasParserCdslParams) MarshalJSON() (data []byte, err error)
func (*CasParserCdslParams) UnmarshalJSON ¶
func (r *CasParserCdslParams) UnmarshalJSON(data []byte) error
type CasParserNsdlParams ¶
type CasParserNsdlParams struct {
// Password for the PDF file (if required)
Password param.Opt[string] `json:"password,omitzero"`
// Base64 encoded CAS PDF file (required if pdf_url not provided)
PdfFile param.Opt[string] `json:"pdf_file,omitzero" format:"base64"`
// URL to the CAS PDF file (required if pdf_file not provided)
PdfURL param.Opt[string] `json:"pdf_url,omitzero" format:"uri"`
// contains filtered or unexported fields
}
func (CasParserNsdlParams) MarshalJSON ¶
func (r CasParserNsdlParams) MarshalJSON() (data []byte, err error)
func (*CasParserNsdlParams) UnmarshalJSON ¶
func (r *CasParserNsdlParams) UnmarshalJSON(data []byte) error
type CasParserService ¶
type CasParserService struct {
Options []option.RequestOption
}
CasParserService contains methods and other services that help with interacting with the CAS Parser API.
Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewCasParserService method instead.
func NewCasParserService ¶
func NewCasParserService(opts ...option.RequestOption) (r CasParserService)
NewCasParserService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (*CasParserService) CamsKfintech ¶
func (r *CasParserService) CamsKfintech(ctx context.Context, body CasParserCamsKfintechParams, opts ...option.RequestOption) (res *UnifiedResponse, err error)
This endpoint specifically parses CAMS/KFintech CAS (Consolidated Account Statement) PDF files and returns data in a unified format. Use this endpoint when you know the PDF is from CAMS or KFintech.
func (*CasParserService) Cdsl ¶
func (r *CasParserService) Cdsl(ctx context.Context, body CasParserCdslParams, opts ...option.RequestOption) (res *UnifiedResponse, err error)
This endpoint specifically parses CDSL CAS (Consolidated Account Statement) PDF files and returns data in a unified format. Use this endpoint when you know the PDF is from CDSL.
func (*CasParserService) Nsdl ¶
func (r *CasParserService) Nsdl(ctx context.Context, body CasParserNsdlParams, opts ...option.RequestOption) (res *UnifiedResponse, err error)
This endpoint specifically parses NSDL CAS (Consolidated Account Statement) PDF files and returns data in a unified format. Use this endpoint when you know the PDF is from NSDL.
func (*CasParserService) SmartParse ¶
func (r *CasParserService) SmartParse(ctx context.Context, body CasParserSmartParseParams, opts ...option.RequestOption) (res *UnifiedResponse, err error)
This endpoint parses CAS (Consolidated Account Statement) PDF files from NSDL, CDSL, or CAMS/KFintech and returns data in a unified format. It auto-detects the CAS type and transforms the data into a consistent structure regardless of the source.
type CasParserSmartParseParams ¶
type CasParserSmartParseParams struct {
// Password for the PDF file (if required)
Password param.Opt[string] `json:"password,omitzero"`
// Base64 encoded CAS PDF file (required if pdf_url not provided)
PdfFile param.Opt[string] `json:"pdf_file,omitzero" format:"base64"`
// URL to the CAS PDF file (required if pdf_file not provided)
PdfURL param.Opt[string] `json:"pdf_url,omitzero" format:"uri"`
// contains filtered or unexported fields
}
func (CasParserSmartParseParams) MarshalJSON ¶
func (r CasParserSmartParseParams) MarshalJSON() (data []byte, err error)
func (*CasParserSmartParseParams) UnmarshalJSON ¶
func (r *CasParserSmartParseParams) UnmarshalJSON(data []byte) error
type Client ¶
type Client struct {
Options []option.RequestOption
CasParser CasParserService
CasGenerator CasGeneratorService
}
Client creates a struct with services and top level methods that help with interacting with the CAS Parser API. You should not instantiate this client directly, and instead use the NewClient method instead.
func NewClient ¶
func NewClient(opts ...option.RequestOption) (r Client)
NewClient generates a new client with the default option read from the environment (CAS_PARSER_API_KEY, CAS_PARSER_BASE_URL). The option passed in as arguments are applied after these default arguments, and all option will be passed down to the services and requests that this client makes.
func (*Client) Delete ¶
func (r *Client) Delete(ctx context.Context, path string, params any, res any, opts ...option.RequestOption) error
Delete makes a DELETE request with the given URL, params, and optionally deserializes to a response. See [Execute] documentation on the params and response.
func (*Client) Execute ¶
func (r *Client) Execute(ctx context.Context, method string, path string, params any, res any, opts ...option.RequestOption) error
Execute makes a request with the given context, method, URL, request params, response, and request options. This is useful for hitting undocumented endpoints while retaining the base URL, auth, retries, and other options from the client.
If a byte slice or an io.Reader is supplied to params, it will be used as-is for the request body.
The params is by default serialized into the body using encoding/json. If your type implements a MarshalJSON function, it will be used instead to serialize the request. If a URLQuery method is implemented, the returned [url.Values] will be used as query strings to the url.
If your params struct uses param.Field, you must provide either [MarshalJSON], [URLQuery], and/or [MarshalForm] functions. It is undefined behavior to use a struct uses param.Field without specifying how it is serialized.
Any "…Params" object defined in this library can be used as the request argument. Note that 'path' arguments will not be forwarded into the url.
The response body will be deserialized into the res variable, depending on its type:
- A pointer to a *http.Response is populated by the raw response.
- A pointer to a byte array will be populated with the contents of the request body.
- A pointer to any other type uses this library's default JSON decoding, which respects UnmarshalJSON if it is defined on the type.
- A nil value will not read the response body.
For even greater flexibility, see option.WithResponseInto and option.WithResponseBodyInto.
func (*Client) Get ¶
func (r *Client) Get(ctx context.Context, path string, params any, res any, opts ...option.RequestOption) error
Get makes a GET request with the given URL, params, and optionally deserializes to a response. See [Execute] documentation on the params and response.
func (*Client) Patch ¶
func (r *Client) Patch(ctx context.Context, path string, params any, res any, opts ...option.RequestOption) error
Patch makes a PATCH request with the given URL, params, and optionally deserializes to a response. See [Execute] documentation on the params and response.
type UnifiedResponse ¶
type UnifiedResponse struct {
DematAccounts []UnifiedResponseDematAccount `json:"demat_accounts"`
Insurance UnifiedResponseInsurance `json:"insurance"`
Investor UnifiedResponseInvestor `json:"investor"`
Meta UnifiedResponseMeta `json:"meta"`
MutualFunds []UnifiedResponseMutualFund `json:"mutual_funds"`
// List of NPS accounts
Nps []UnifiedResponseNp `json:"nps"`
Summary UnifiedResponseSummary `json:"summary"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
DematAccounts respjson.Field
Insurance respjson.Field
Investor respjson.Field
Meta respjson.Field
MutualFunds respjson.Field
Nps respjson.Field
Summary respjson.Field
ExtraFields map[string]respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
func (UnifiedResponse) RawJSON ¶
func (r UnifiedResponse) RawJSON() string
Returns the unmodified JSON received from the API
func (*UnifiedResponse) UnmarshalJSON ¶
func (r *UnifiedResponse) UnmarshalJSON(data []byte) error
type UnifiedResponseDematAccount ¶
type UnifiedResponseDematAccount struct {
// Additional information specific to the demat account type
AdditionalInfo UnifiedResponseDematAccountAdditionalInfo `json:"additional_info"`
// Beneficiary Owner ID (primarily for CDSL)
BoID string `json:"bo_id"`
// Client ID
ClientID string `json:"client_id"`
// Type of demat account
//
// Any of "NSDL", "CDSL".
DematType string `json:"demat_type"`
// Depository Participant ID
DpID string `json:"dp_id"`
// Depository Participant name
DpName string `json:"dp_name"`
Holdings UnifiedResponseDematAccountHoldings `json:"holdings"`
// List of account holders linked to this demat account
LinkedHolders []UnifiedResponseDematAccountLinkedHolder `json:"linked_holders"`
// Total value of the demat account
Value float64 `json:"value"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
AdditionalInfo respjson.Field
BoID respjson.Field
ClientID respjson.Field
DematType respjson.Field
DpID respjson.Field
DpName respjson.Field
Holdings respjson.Field
LinkedHolders respjson.Field
Value respjson.Field
ExtraFields map[string]respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
func (UnifiedResponseDematAccount) RawJSON ¶
func (r UnifiedResponseDematAccount) RawJSON() string
Returns the unmodified JSON received from the API
func (*UnifiedResponseDematAccount) UnmarshalJSON ¶
func (r *UnifiedResponseDematAccount) UnmarshalJSON(data []byte) error
type UnifiedResponseDematAccountAdditionalInfo ¶
type UnifiedResponseDematAccountAdditionalInfo struct {
// Beneficiary Owner status (CDSL)
BoStatus string `json:"bo_status"`
// Beneficiary Owner sub-status (CDSL)
BoSubStatus string `json:"bo_sub_status"`
// Beneficiary Owner type (CDSL)
BoType string `json:"bo_type"`
// Basic Services Demat Account status (CDSL)
Bsda string `json:"bsda"`
// Email associated with the demat account (CDSL)
Email string `json:"email" format:"email"`
// List of linked PAN numbers (NSDL)
LinkedPans []string `json:"linked_pans"`
// Nominee details (CDSL)
Nominee string `json:"nominee"`
// Account status (CDSL)
Status string `json:"status"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
BoStatus respjson.Field
BoSubStatus respjson.Field
BoType respjson.Field
Bsda respjson.Field
Email respjson.Field
LinkedPans respjson.Field
Nominee respjson.Field
Status respjson.Field
ExtraFields map[string]respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
Additional information specific to the demat account type
func (UnifiedResponseDematAccountAdditionalInfo) RawJSON ¶
func (r UnifiedResponseDematAccountAdditionalInfo) RawJSON() string
Returns the unmodified JSON received from the API
func (*UnifiedResponseDematAccountAdditionalInfo) UnmarshalJSON ¶
func (r *UnifiedResponseDematAccountAdditionalInfo) UnmarshalJSON(data []byte) error
type UnifiedResponseDematAccountHoldings ¶
type UnifiedResponseDematAccountHoldings struct {
Aifs []UnifiedResponseDematAccountHoldingsAif `json:"aifs"`
CorporateBonds []UnifiedResponseDematAccountHoldingsCorporateBond `json:"corporate_bonds"`
DematMutualFunds []UnifiedResponseDematAccountHoldingsDematMutualFund `json:"demat_mutual_funds"`
Equities []UnifiedResponseDematAccountHoldingsEquity `json:"equities"`
GovernmentSecurities []UnifiedResponseDematAccountHoldingsGovernmentSecurity `json:"government_securities"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
Aifs respjson.Field
CorporateBonds respjson.Field
DematMutualFunds respjson.Field
Equities respjson.Field
GovernmentSecurities respjson.Field
ExtraFields map[string]respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
func (UnifiedResponseDematAccountHoldings) RawJSON ¶
func (r UnifiedResponseDematAccountHoldings) RawJSON() string
Returns the unmodified JSON received from the API
func (*UnifiedResponseDematAccountHoldings) UnmarshalJSON ¶
func (r *UnifiedResponseDematAccountHoldings) UnmarshalJSON(data []byte) error
type UnifiedResponseDematAccountHoldingsAif ¶
type UnifiedResponseDematAccountHoldingsAif struct {
// Additional information specific to the AIF
AdditionalInfo UnifiedResponseDematAccountHoldingsAifAdditionalInfo `json:"additional_info"`
// ISIN code of the AIF
Isin string `json:"isin"`
// Name of the AIF
Name string `json:"name"`
// List of transactions for this holding (beta)
Transactions []UnifiedResponseDematAccountHoldingsAifTransaction `json:"transactions"`
// Number of units held
Units float64 `json:"units"`
// Current market value of the holding
Value float64 `json:"value"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
AdditionalInfo respjson.Field
Isin respjson.Field
Name respjson.Field
Transactions respjson.Field
Units respjson.Field
Value respjson.Field
ExtraFields map[string]respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
func (UnifiedResponseDematAccountHoldingsAif) RawJSON ¶
func (r UnifiedResponseDematAccountHoldingsAif) RawJSON() string
Returns the unmodified JSON received from the API
func (*UnifiedResponseDematAccountHoldingsAif) UnmarshalJSON ¶
func (r *UnifiedResponseDematAccountHoldingsAif) UnmarshalJSON(data []byte) error
type UnifiedResponseDematAccountHoldingsAifAdditionalInfo ¶ added in v0.1.0
type UnifiedResponseDematAccountHoldingsAifAdditionalInfo struct {
// Closing balance units for the statement period (beta)
CloseUnits float64 `json:"close_units,nullable"`
// Opening balance units for the statement period (beta)
OpenUnits float64 `json:"open_units,nullable"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
CloseUnits respjson.Field
OpenUnits respjson.Field
ExtraFields map[string]respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
Additional information specific to the AIF
func (UnifiedResponseDematAccountHoldingsAifAdditionalInfo) RawJSON ¶ added in v0.1.0
func (r UnifiedResponseDematAccountHoldingsAifAdditionalInfo) RawJSON() string
Returns the unmodified JSON received from the API
func (*UnifiedResponseDematAccountHoldingsAifAdditionalInfo) UnmarshalJSON ¶ added in v0.1.0
func (r *UnifiedResponseDematAccountHoldingsAifAdditionalInfo) UnmarshalJSON(data []byte) error
type UnifiedResponseDematAccountHoldingsAifTransaction ¶ added in v0.1.0
type UnifiedResponseDematAccountHoldingsAifTransaction struct {
// Additional transaction-specific fields that vary by source
AdditionalInfo UnifiedResponseDematAccountHoldingsAifTransactionAdditionalInfo `json:"additional_info"`
// Transaction amount in currency (computed from units × price/NAV)
Amount float64 `json:"amount,nullable"`
// Balance units after transaction
Balance float64 `json:"balance"`
// Transaction date (YYYY-MM-DD)
Date time.Time `json:"date" format:"date"`
// Transaction description/particulars
Description string `json:"description"`
// Dividend rate (for DIVIDEND_PAYOUT transactions)
DividendRate float64 `json:"dividend_rate,nullable"`
Nav float64 `json:"nav,nullable"`
// Transaction type. Possible values are PURCHASE, PURCHASE_SIP, REDEMPTION,
// SWITCH_IN, SWITCH_IN_MERGER, SWITCH_OUT, SWITCH_OUT_MERGER, DIVIDEND_PAYOUT,
// DIVIDEND_REINVEST, SEGREGATION, STAMP_DUTY_TAX, TDS_TAX, STT_TAX, MISC,
// REVERSAL, UNKNOWN.
//
// Any of "PURCHASE", "PURCHASE_SIP", "REDEMPTION", "SWITCH_IN",
// "SWITCH_IN_MERGER", "SWITCH_OUT", "SWITCH_OUT_MERGER", "DIVIDEND_PAYOUT",
// "DIVIDEND_REINVEST", "SEGREGATION", "STAMP_DUTY_TAX", "TDS_TAX", "STT_TAX",
// "MISC", "REVERSAL", "UNKNOWN".
Type string `json:"type"`
// Number of units involved in transaction
Units float64 `json:"units"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
AdditionalInfo respjson.Field
Amount respjson.Field
Balance respjson.Field
Date respjson.Field
Description respjson.Field
DividendRate respjson.Field
Nav respjson.Field
Type respjson.Field
Units respjson.Field
ExtraFields map[string]respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
Unified transaction schema for all holding types (MF folios, equities, bonds, etc.)
func (UnifiedResponseDematAccountHoldingsAifTransaction) RawJSON ¶ added in v0.1.0
func (r UnifiedResponseDematAccountHoldingsAifTransaction) RawJSON() string
Returns the unmodified JSON received from the API
func (*UnifiedResponseDematAccountHoldingsAifTransaction) UnmarshalJSON ¶ added in v0.1.0
func (r *UnifiedResponseDematAccountHoldingsAifTransaction) UnmarshalJSON(data []byte) error
type UnifiedResponseDematAccountHoldingsAifTransactionAdditionalInfo ¶ added in v0.1.0
type UnifiedResponseDematAccountHoldingsAifTransactionAdditionalInfo struct {
// Capital withdrawal amount (CDSL MF transactions)
CapitalWithdrawal float64 `json:"capital_withdrawal"`
// Units credited (demat transactions)
Credit float64 `json:"credit"`
// Units debited (demat transactions)
Debit float64 `json:"debit"`
// Income distribution amount (CDSL MF transactions)
IncomeDistribution float64 `json:"income_distribution"`
// Order/transaction reference number (demat transactions)
OrderNo string `json:"order_no"`
// Price per unit (NSDL/CDSL MF transactions)
Price float64 `json:"price"`
// Stamp duty charged
StampDuty float64 `json:"stamp_duty"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
CapitalWithdrawal respjson.Field
Credit respjson.Field
Debit respjson.Field
IncomeDistribution respjson.Field
OrderNo respjson.Field
Price respjson.Field
StampDuty respjson.Field
ExtraFields map[string]respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
Additional transaction-specific fields that vary by source
func (UnifiedResponseDematAccountHoldingsAifTransactionAdditionalInfo) RawJSON ¶ added in v0.1.0
func (r UnifiedResponseDematAccountHoldingsAifTransactionAdditionalInfo) RawJSON() string
Returns the unmodified JSON received from the API
func (*UnifiedResponseDematAccountHoldingsAifTransactionAdditionalInfo) UnmarshalJSON ¶ added in v0.1.0
func (r *UnifiedResponseDematAccountHoldingsAifTransactionAdditionalInfo) UnmarshalJSON(data []byte) error
type UnifiedResponseDematAccountHoldingsCorporateBond ¶
type UnifiedResponseDematAccountHoldingsCorporateBond struct {
// Additional information specific to the corporate bond
AdditionalInfo UnifiedResponseDematAccountHoldingsCorporateBondAdditionalInfo `json:"additional_info"`
// ISIN code of the corporate bond
Isin string `json:"isin"`
// Name of the corporate bond
Name string `json:"name"`
// List of transactions for this holding (beta)
Transactions []UnifiedResponseDematAccountHoldingsCorporateBondTransaction `json:"transactions"`
// Number of units held
Units float64 `json:"units"`
// Current market value of the holding
Value float64 `json:"value"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
AdditionalInfo respjson.Field
Isin respjson.Field
Name respjson.Field
Transactions respjson.Field
Units respjson.Field
Value respjson.Field
ExtraFields map[string]respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
func (UnifiedResponseDematAccountHoldingsCorporateBond) RawJSON ¶
func (r UnifiedResponseDematAccountHoldingsCorporateBond) RawJSON() string
Returns the unmodified JSON received from the API
func (*UnifiedResponseDematAccountHoldingsCorporateBond) UnmarshalJSON ¶
func (r *UnifiedResponseDematAccountHoldingsCorporateBond) UnmarshalJSON(data []byte) error
type UnifiedResponseDematAccountHoldingsCorporateBondAdditionalInfo ¶ added in v0.1.0
type UnifiedResponseDematAccountHoldingsCorporateBondAdditionalInfo struct {
// Closing balance units for the statement period (beta)
CloseUnits float64 `json:"close_units,nullable"`
// Opening balance units for the statement period (beta)
OpenUnits float64 `json:"open_units,nullable"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
CloseUnits respjson.Field
OpenUnits respjson.Field
ExtraFields map[string]respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
Additional information specific to the corporate bond
func (UnifiedResponseDematAccountHoldingsCorporateBondAdditionalInfo) RawJSON ¶ added in v0.1.0
func (r UnifiedResponseDematAccountHoldingsCorporateBondAdditionalInfo) RawJSON() string
Returns the unmodified JSON received from the API
func (*UnifiedResponseDematAccountHoldingsCorporateBondAdditionalInfo) UnmarshalJSON ¶ added in v0.1.0
func (r *UnifiedResponseDematAccountHoldingsCorporateBondAdditionalInfo) UnmarshalJSON(data []byte) error
type UnifiedResponseDematAccountHoldingsCorporateBondTransaction ¶ added in v0.1.0
type UnifiedResponseDematAccountHoldingsCorporateBondTransaction struct {
// Additional transaction-specific fields that vary by source
AdditionalInfo UnifiedResponseDematAccountHoldingsCorporateBondTransactionAdditionalInfo `json:"additional_info"`
// Transaction amount in currency (computed from units × price/NAV)
Amount float64 `json:"amount,nullable"`
// Balance units after transaction
Balance float64 `json:"balance"`
// Transaction date (YYYY-MM-DD)
Date time.Time `json:"date" format:"date"`
// Transaction description/particulars
Description string `json:"description"`
// Dividend rate (for DIVIDEND_PAYOUT transactions)
DividendRate float64 `json:"dividend_rate,nullable"`
Nav float64 `json:"nav,nullable"`
// Transaction type. Possible values are PURCHASE, PURCHASE_SIP, REDEMPTION,
// SWITCH_IN, SWITCH_IN_MERGER, SWITCH_OUT, SWITCH_OUT_MERGER, DIVIDEND_PAYOUT,
// DIVIDEND_REINVEST, SEGREGATION, STAMP_DUTY_TAX, TDS_TAX, STT_TAX, MISC,
// REVERSAL, UNKNOWN.
//
// Any of "PURCHASE", "PURCHASE_SIP", "REDEMPTION", "SWITCH_IN",
// "SWITCH_IN_MERGER", "SWITCH_OUT", "SWITCH_OUT_MERGER", "DIVIDEND_PAYOUT",
// "DIVIDEND_REINVEST", "SEGREGATION", "STAMP_DUTY_TAX", "TDS_TAX", "STT_TAX",
// "MISC", "REVERSAL", "UNKNOWN".
Type string `json:"type"`
// Number of units involved in transaction
Units float64 `json:"units"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
AdditionalInfo respjson.Field
Amount respjson.Field
Balance respjson.Field
Date respjson.Field
Description respjson.Field
DividendRate respjson.Field
Nav respjson.Field
Type respjson.Field
Units respjson.Field
ExtraFields map[string]respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
Unified transaction schema for all holding types (MF folios, equities, bonds, etc.)
func (UnifiedResponseDematAccountHoldingsCorporateBondTransaction) RawJSON ¶ added in v0.1.0
func (r UnifiedResponseDematAccountHoldingsCorporateBondTransaction) RawJSON() string
Returns the unmodified JSON received from the API
func (*UnifiedResponseDematAccountHoldingsCorporateBondTransaction) UnmarshalJSON ¶ added in v0.1.0
func (r *UnifiedResponseDematAccountHoldingsCorporateBondTransaction) UnmarshalJSON(data []byte) error
type UnifiedResponseDematAccountHoldingsCorporateBondTransactionAdditionalInfo ¶ added in v0.1.0
type UnifiedResponseDematAccountHoldingsCorporateBondTransactionAdditionalInfo struct {
// Capital withdrawal amount (CDSL MF transactions)
CapitalWithdrawal float64 `json:"capital_withdrawal"`
// Units credited (demat transactions)
Credit float64 `json:"credit"`
// Units debited (demat transactions)
Debit float64 `json:"debit"`
// Income distribution amount (CDSL MF transactions)
IncomeDistribution float64 `json:"income_distribution"`
// Order/transaction reference number (demat transactions)
OrderNo string `json:"order_no"`
// Price per unit (NSDL/CDSL MF transactions)
Price float64 `json:"price"`
// Stamp duty charged
StampDuty float64 `json:"stamp_duty"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
CapitalWithdrawal respjson.Field
Credit respjson.Field
Debit respjson.Field
IncomeDistribution respjson.Field
OrderNo respjson.Field
Price respjson.Field
StampDuty respjson.Field
ExtraFields map[string]respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
Additional transaction-specific fields that vary by source
func (UnifiedResponseDematAccountHoldingsCorporateBondTransactionAdditionalInfo) RawJSON ¶ added in v0.1.0
func (r UnifiedResponseDematAccountHoldingsCorporateBondTransactionAdditionalInfo) RawJSON() string
Returns the unmodified JSON received from the API
func (*UnifiedResponseDematAccountHoldingsCorporateBondTransactionAdditionalInfo) UnmarshalJSON ¶ added in v0.1.0
func (r *UnifiedResponseDematAccountHoldingsCorporateBondTransactionAdditionalInfo) UnmarshalJSON(data []byte) error
type UnifiedResponseDematAccountHoldingsDematMutualFund ¶
type UnifiedResponseDematAccountHoldingsDematMutualFund struct {
// Additional information specific to the mutual fund
AdditionalInfo UnifiedResponseDematAccountHoldingsDematMutualFundAdditionalInfo `json:"additional_info"`
// ISIN code of the mutual fund
Isin string `json:"isin"`
// Name of the mutual fund
Name string `json:"name"`
// List of transactions for this holding (beta)
Transactions []UnifiedResponseDematAccountHoldingsDematMutualFundTransaction `json:"transactions"`
// Number of units held
Units float64 `json:"units"`
// Current market value of the holding
Value float64 `json:"value"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
AdditionalInfo respjson.Field
Isin respjson.Field
Name respjson.Field
Transactions respjson.Field
Units respjson.Field
Value respjson.Field
ExtraFields map[string]respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
func (UnifiedResponseDematAccountHoldingsDematMutualFund) RawJSON ¶
func (r UnifiedResponseDematAccountHoldingsDematMutualFund) RawJSON() string
Returns the unmodified JSON received from the API
func (*UnifiedResponseDematAccountHoldingsDematMutualFund) UnmarshalJSON ¶
func (r *UnifiedResponseDematAccountHoldingsDematMutualFund) UnmarshalJSON(data []byte) error
type UnifiedResponseDematAccountHoldingsDematMutualFundAdditionalInfo ¶ added in v0.1.0
type UnifiedResponseDematAccountHoldingsDematMutualFundAdditionalInfo struct {
// Closing balance units for the statement period (beta)
CloseUnits float64 `json:"close_units,nullable"`
// Opening balance units for the statement period (beta)
OpenUnits float64 `json:"open_units,nullable"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
CloseUnits respjson.Field
OpenUnits respjson.Field
ExtraFields map[string]respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
Additional information specific to the mutual fund
func (UnifiedResponseDematAccountHoldingsDematMutualFundAdditionalInfo) RawJSON ¶ added in v0.1.0
func (r UnifiedResponseDematAccountHoldingsDematMutualFundAdditionalInfo) RawJSON() string
Returns the unmodified JSON received from the API
func (*UnifiedResponseDematAccountHoldingsDematMutualFundAdditionalInfo) UnmarshalJSON ¶ added in v0.1.0
func (r *UnifiedResponseDematAccountHoldingsDematMutualFundAdditionalInfo) UnmarshalJSON(data []byte) error
type UnifiedResponseDematAccountHoldingsDematMutualFundTransaction ¶ added in v0.1.0
type UnifiedResponseDematAccountHoldingsDematMutualFundTransaction struct {
// Additional transaction-specific fields that vary by source
AdditionalInfo UnifiedResponseDematAccountHoldingsDematMutualFundTransactionAdditionalInfo `json:"additional_info"`
// Transaction amount in currency (computed from units × price/NAV)
Amount float64 `json:"amount,nullable"`
// Balance units after transaction
Balance float64 `json:"balance"`
// Transaction date (YYYY-MM-DD)
Date time.Time `json:"date" format:"date"`
// Transaction description/particulars
Description string `json:"description"`
// Dividend rate (for DIVIDEND_PAYOUT transactions)
DividendRate float64 `json:"dividend_rate,nullable"`
Nav float64 `json:"nav,nullable"`
// Transaction type. Possible values are PURCHASE, PURCHASE_SIP, REDEMPTION,
// SWITCH_IN, SWITCH_IN_MERGER, SWITCH_OUT, SWITCH_OUT_MERGER, DIVIDEND_PAYOUT,
// DIVIDEND_REINVEST, SEGREGATION, STAMP_DUTY_TAX, TDS_TAX, STT_TAX, MISC,
// REVERSAL, UNKNOWN.
//
// Any of "PURCHASE", "PURCHASE_SIP", "REDEMPTION", "SWITCH_IN",
// "SWITCH_IN_MERGER", "SWITCH_OUT", "SWITCH_OUT_MERGER", "DIVIDEND_PAYOUT",
// "DIVIDEND_REINVEST", "SEGREGATION", "STAMP_DUTY_TAX", "TDS_TAX", "STT_TAX",
// "MISC", "REVERSAL", "UNKNOWN".
Type string `json:"type"`
// Number of units involved in transaction
Units float64 `json:"units"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
AdditionalInfo respjson.Field
Amount respjson.Field
Balance respjson.Field
Date respjson.Field
Description respjson.Field
DividendRate respjson.Field
Nav respjson.Field
Type respjson.Field
Units respjson.Field
ExtraFields map[string]respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
Unified transaction schema for all holding types (MF folios, equities, bonds, etc.)
func (UnifiedResponseDematAccountHoldingsDematMutualFundTransaction) RawJSON ¶ added in v0.1.0
func (r UnifiedResponseDematAccountHoldingsDematMutualFundTransaction) RawJSON() string
Returns the unmodified JSON received from the API
func (*UnifiedResponseDematAccountHoldingsDematMutualFundTransaction) UnmarshalJSON ¶ added in v0.1.0
func (r *UnifiedResponseDematAccountHoldingsDematMutualFundTransaction) UnmarshalJSON(data []byte) error
type UnifiedResponseDematAccountHoldingsDematMutualFundTransactionAdditionalInfo ¶ added in v0.1.0
type UnifiedResponseDematAccountHoldingsDematMutualFundTransactionAdditionalInfo struct {
// Capital withdrawal amount (CDSL MF transactions)
CapitalWithdrawal float64 `json:"capital_withdrawal"`
// Units credited (demat transactions)
Credit float64 `json:"credit"`
// Units debited (demat transactions)
Debit float64 `json:"debit"`
// Income distribution amount (CDSL MF transactions)
IncomeDistribution float64 `json:"income_distribution"`
// Order/transaction reference number (demat transactions)
OrderNo string `json:"order_no"`
// Price per unit (NSDL/CDSL MF transactions)
Price float64 `json:"price"`
// Stamp duty charged
StampDuty float64 `json:"stamp_duty"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
CapitalWithdrawal respjson.Field
Credit respjson.Field
Debit respjson.Field
IncomeDistribution respjson.Field
OrderNo respjson.Field
Price respjson.Field
StampDuty respjson.Field
ExtraFields map[string]respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
Additional transaction-specific fields that vary by source
func (UnifiedResponseDematAccountHoldingsDematMutualFundTransactionAdditionalInfo) RawJSON ¶ added in v0.1.0
func (r UnifiedResponseDematAccountHoldingsDematMutualFundTransactionAdditionalInfo) RawJSON() string
Returns the unmodified JSON received from the API
func (*UnifiedResponseDematAccountHoldingsDematMutualFundTransactionAdditionalInfo) UnmarshalJSON ¶ added in v0.1.0
func (r *UnifiedResponseDematAccountHoldingsDematMutualFundTransactionAdditionalInfo) UnmarshalJSON(data []byte) error
type UnifiedResponseDematAccountHoldingsEquity ¶
type UnifiedResponseDematAccountHoldingsEquity struct {
// Additional information specific to the equity
AdditionalInfo UnifiedResponseDematAccountHoldingsEquityAdditionalInfo `json:"additional_info"`
// ISIN code of the equity
Isin string `json:"isin"`
// Name of the equity
Name string `json:"name"`
// List of transactions for this holding (beta)
Transactions []UnifiedResponseDematAccountHoldingsEquityTransaction `json:"transactions"`
// Number of units held
Units float64 `json:"units"`
// Current market value of the holding
Value float64 `json:"value"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
AdditionalInfo respjson.Field
Isin respjson.Field
Name respjson.Field
Transactions respjson.Field
Units respjson.Field
Value respjson.Field
ExtraFields map[string]respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
func (UnifiedResponseDematAccountHoldingsEquity) RawJSON ¶
func (r UnifiedResponseDematAccountHoldingsEquity) RawJSON() string
Returns the unmodified JSON received from the API
func (*UnifiedResponseDematAccountHoldingsEquity) UnmarshalJSON ¶
func (r *UnifiedResponseDematAccountHoldingsEquity) UnmarshalJSON(data []byte) error
type UnifiedResponseDematAccountHoldingsEquityAdditionalInfo ¶ added in v0.1.0
type UnifiedResponseDematAccountHoldingsEquityAdditionalInfo struct {
// Closing balance units for the statement period (beta)
CloseUnits float64 `json:"close_units,nullable"`
// Opening balance units for the statement period (beta)
OpenUnits float64 `json:"open_units,nullable"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
CloseUnits respjson.Field
OpenUnits respjson.Field
ExtraFields map[string]respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
Additional information specific to the equity
func (UnifiedResponseDematAccountHoldingsEquityAdditionalInfo) RawJSON ¶ added in v0.1.0
func (r UnifiedResponseDematAccountHoldingsEquityAdditionalInfo) RawJSON() string
Returns the unmodified JSON received from the API
func (*UnifiedResponseDematAccountHoldingsEquityAdditionalInfo) UnmarshalJSON ¶ added in v0.1.0
func (r *UnifiedResponseDematAccountHoldingsEquityAdditionalInfo) UnmarshalJSON(data []byte) error
type UnifiedResponseDematAccountHoldingsEquityTransaction ¶ added in v0.1.0
type UnifiedResponseDematAccountHoldingsEquityTransaction struct {
// Additional transaction-specific fields that vary by source
AdditionalInfo UnifiedResponseDematAccountHoldingsEquityTransactionAdditionalInfo `json:"additional_info"`
// Transaction amount in currency (computed from units × price/NAV)
Amount float64 `json:"amount,nullable"`
// Balance units after transaction
Balance float64 `json:"balance"`
// Transaction date (YYYY-MM-DD)
Date time.Time `json:"date" format:"date"`
// Transaction description/particulars
Description string `json:"description"`
// Dividend rate (for DIVIDEND_PAYOUT transactions)
DividendRate float64 `json:"dividend_rate,nullable"`
Nav float64 `json:"nav,nullable"`
// Transaction type. Possible values are PURCHASE, PURCHASE_SIP, REDEMPTION,
// SWITCH_IN, SWITCH_IN_MERGER, SWITCH_OUT, SWITCH_OUT_MERGER, DIVIDEND_PAYOUT,
// DIVIDEND_REINVEST, SEGREGATION, STAMP_DUTY_TAX, TDS_TAX, STT_TAX, MISC,
// REVERSAL, UNKNOWN.
//
// Any of "PURCHASE", "PURCHASE_SIP", "REDEMPTION", "SWITCH_IN",
// "SWITCH_IN_MERGER", "SWITCH_OUT", "SWITCH_OUT_MERGER", "DIVIDEND_PAYOUT",
// "DIVIDEND_REINVEST", "SEGREGATION", "STAMP_DUTY_TAX", "TDS_TAX", "STT_TAX",
// "MISC", "REVERSAL", "UNKNOWN".
Type string `json:"type"`
// Number of units involved in transaction
Units float64 `json:"units"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
AdditionalInfo respjson.Field
Amount respjson.Field
Balance respjson.Field
Date respjson.Field
Description respjson.Field
DividendRate respjson.Field
Nav respjson.Field
Type respjson.Field
Units respjson.Field
ExtraFields map[string]respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
Unified transaction schema for all holding types (MF folios, equities, bonds, etc.)
func (UnifiedResponseDematAccountHoldingsEquityTransaction) RawJSON ¶ added in v0.1.0
func (r UnifiedResponseDematAccountHoldingsEquityTransaction) RawJSON() string
Returns the unmodified JSON received from the API
func (*UnifiedResponseDematAccountHoldingsEquityTransaction) UnmarshalJSON ¶ added in v0.1.0
func (r *UnifiedResponseDematAccountHoldingsEquityTransaction) UnmarshalJSON(data []byte) error
type UnifiedResponseDematAccountHoldingsEquityTransactionAdditionalInfo ¶ added in v0.1.0
type UnifiedResponseDematAccountHoldingsEquityTransactionAdditionalInfo struct {
// Capital withdrawal amount (CDSL MF transactions)
CapitalWithdrawal float64 `json:"capital_withdrawal"`
// Units credited (demat transactions)
Credit float64 `json:"credit"`
// Units debited (demat transactions)
Debit float64 `json:"debit"`
// Income distribution amount (CDSL MF transactions)
IncomeDistribution float64 `json:"income_distribution"`
// Order/transaction reference number (demat transactions)
OrderNo string `json:"order_no"`
// Price per unit (NSDL/CDSL MF transactions)
Price float64 `json:"price"`
// Stamp duty charged
StampDuty float64 `json:"stamp_duty"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
CapitalWithdrawal respjson.Field
Credit respjson.Field
Debit respjson.Field
IncomeDistribution respjson.Field
OrderNo respjson.Field
Price respjson.Field
StampDuty respjson.Field
ExtraFields map[string]respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
Additional transaction-specific fields that vary by source
func (UnifiedResponseDematAccountHoldingsEquityTransactionAdditionalInfo) RawJSON ¶ added in v0.1.0
func (r UnifiedResponseDematAccountHoldingsEquityTransactionAdditionalInfo) RawJSON() string
Returns the unmodified JSON received from the API
func (*UnifiedResponseDematAccountHoldingsEquityTransactionAdditionalInfo) UnmarshalJSON ¶ added in v0.1.0
func (r *UnifiedResponseDematAccountHoldingsEquityTransactionAdditionalInfo) UnmarshalJSON(data []byte) error
type UnifiedResponseDematAccountHoldingsGovernmentSecurity ¶
type UnifiedResponseDematAccountHoldingsGovernmentSecurity struct {
// Additional information specific to the government security
AdditionalInfo UnifiedResponseDematAccountHoldingsGovernmentSecurityAdditionalInfo `json:"additional_info"`
// ISIN code of the government security
Isin string `json:"isin"`
// Name of the government security
Name string `json:"name"`
// List of transactions for this holding (beta)
Transactions []UnifiedResponseDematAccountHoldingsGovernmentSecurityTransaction `json:"transactions"`
// Number of units held
Units float64 `json:"units"`
// Current market value of the holding
Value float64 `json:"value"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
AdditionalInfo respjson.Field
Isin respjson.Field
Name respjson.Field
Transactions respjson.Field
Units respjson.Field
Value respjson.Field
ExtraFields map[string]respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
func (UnifiedResponseDematAccountHoldingsGovernmentSecurity) RawJSON ¶
func (r UnifiedResponseDematAccountHoldingsGovernmentSecurity) RawJSON() string
Returns the unmodified JSON received from the API
func (*UnifiedResponseDematAccountHoldingsGovernmentSecurity) UnmarshalJSON ¶
func (r *UnifiedResponseDematAccountHoldingsGovernmentSecurity) UnmarshalJSON(data []byte) error
type UnifiedResponseDematAccountHoldingsGovernmentSecurityAdditionalInfo ¶ added in v0.1.0
type UnifiedResponseDematAccountHoldingsGovernmentSecurityAdditionalInfo struct {
// Closing balance units for the statement period (beta)
CloseUnits float64 `json:"close_units,nullable"`
// Opening balance units for the statement period (beta)
OpenUnits float64 `json:"open_units,nullable"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
CloseUnits respjson.Field
OpenUnits respjson.Field
ExtraFields map[string]respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
Additional information specific to the government security
func (UnifiedResponseDematAccountHoldingsGovernmentSecurityAdditionalInfo) RawJSON ¶ added in v0.1.0
func (r UnifiedResponseDematAccountHoldingsGovernmentSecurityAdditionalInfo) RawJSON() string
Returns the unmodified JSON received from the API
func (*UnifiedResponseDematAccountHoldingsGovernmentSecurityAdditionalInfo) UnmarshalJSON ¶ added in v0.1.0
func (r *UnifiedResponseDematAccountHoldingsGovernmentSecurityAdditionalInfo) UnmarshalJSON(data []byte) error
type UnifiedResponseDematAccountHoldingsGovernmentSecurityTransaction ¶ added in v0.1.0
type UnifiedResponseDematAccountHoldingsGovernmentSecurityTransaction struct {
// Additional transaction-specific fields that vary by source
AdditionalInfo UnifiedResponseDematAccountHoldingsGovernmentSecurityTransactionAdditionalInfo `json:"additional_info"`
// Transaction amount in currency (computed from units × price/NAV)
Amount float64 `json:"amount,nullable"`
// Balance units after transaction
Balance float64 `json:"balance"`
// Transaction date (YYYY-MM-DD)
Date time.Time `json:"date" format:"date"`
// Transaction description/particulars
Description string `json:"description"`
// Dividend rate (for DIVIDEND_PAYOUT transactions)
DividendRate float64 `json:"dividend_rate,nullable"`
Nav float64 `json:"nav,nullable"`
// Transaction type. Possible values are PURCHASE, PURCHASE_SIP, REDEMPTION,
// SWITCH_IN, SWITCH_IN_MERGER, SWITCH_OUT, SWITCH_OUT_MERGER, DIVIDEND_PAYOUT,
// DIVIDEND_REINVEST, SEGREGATION, STAMP_DUTY_TAX, TDS_TAX, STT_TAX, MISC,
// REVERSAL, UNKNOWN.
//
// Any of "PURCHASE", "PURCHASE_SIP", "REDEMPTION", "SWITCH_IN",
// "SWITCH_IN_MERGER", "SWITCH_OUT", "SWITCH_OUT_MERGER", "DIVIDEND_PAYOUT",
// "DIVIDEND_REINVEST", "SEGREGATION", "STAMP_DUTY_TAX", "TDS_TAX", "STT_TAX",
// "MISC", "REVERSAL", "UNKNOWN".
Type string `json:"type"`
// Number of units involved in transaction
Units float64 `json:"units"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
AdditionalInfo respjson.Field
Amount respjson.Field
Balance respjson.Field
Date respjson.Field
Description respjson.Field
DividendRate respjson.Field
Nav respjson.Field
Type respjson.Field
Units respjson.Field
ExtraFields map[string]respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
Unified transaction schema for all holding types (MF folios, equities, bonds, etc.)
func (UnifiedResponseDematAccountHoldingsGovernmentSecurityTransaction) RawJSON ¶ added in v0.1.0
func (r UnifiedResponseDematAccountHoldingsGovernmentSecurityTransaction) RawJSON() string
Returns the unmodified JSON received from the API
func (*UnifiedResponseDematAccountHoldingsGovernmentSecurityTransaction) UnmarshalJSON ¶ added in v0.1.0
func (r *UnifiedResponseDematAccountHoldingsGovernmentSecurityTransaction) UnmarshalJSON(data []byte) error
type UnifiedResponseDematAccountHoldingsGovernmentSecurityTransactionAdditionalInfo ¶ added in v0.1.0
type UnifiedResponseDematAccountHoldingsGovernmentSecurityTransactionAdditionalInfo struct {
// Capital withdrawal amount (CDSL MF transactions)
CapitalWithdrawal float64 `json:"capital_withdrawal"`
// Units credited (demat transactions)
Credit float64 `json:"credit"`
// Units debited (demat transactions)
Debit float64 `json:"debit"`
// Income distribution amount (CDSL MF transactions)
IncomeDistribution float64 `json:"income_distribution"`
// Order/transaction reference number (demat transactions)
OrderNo string `json:"order_no"`
// Price per unit (NSDL/CDSL MF transactions)
Price float64 `json:"price"`
// Stamp duty charged
StampDuty float64 `json:"stamp_duty"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
CapitalWithdrawal respjson.Field
Credit respjson.Field
Debit respjson.Field
IncomeDistribution respjson.Field
OrderNo respjson.Field
Price respjson.Field
StampDuty respjson.Field
ExtraFields map[string]respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
Additional transaction-specific fields that vary by source
func (UnifiedResponseDematAccountHoldingsGovernmentSecurityTransactionAdditionalInfo) RawJSON ¶ added in v0.1.0
func (r UnifiedResponseDematAccountHoldingsGovernmentSecurityTransactionAdditionalInfo) RawJSON() string
Returns the unmodified JSON received from the API
func (*UnifiedResponseDematAccountHoldingsGovernmentSecurityTransactionAdditionalInfo) UnmarshalJSON ¶ added in v0.1.0
func (r *UnifiedResponseDematAccountHoldingsGovernmentSecurityTransactionAdditionalInfo) UnmarshalJSON(data []byte) error
type UnifiedResponseDematAccountLinkedHolder ¶ added in v0.1.0
type UnifiedResponseDematAccountLinkedHolder struct {
// Name of the account holder
Name string `json:"name"`
// PAN of the account holder
Pan string `json:"pan"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
Name respjson.Field
Pan respjson.Field
ExtraFields map[string]respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
func (UnifiedResponseDematAccountLinkedHolder) RawJSON ¶ added in v0.1.0
func (r UnifiedResponseDematAccountLinkedHolder) RawJSON() string
Returns the unmodified JSON received from the API
func (*UnifiedResponseDematAccountLinkedHolder) UnmarshalJSON ¶ added in v0.1.0
func (r *UnifiedResponseDematAccountLinkedHolder) UnmarshalJSON(data []byte) error
type UnifiedResponseInsurance ¶
type UnifiedResponseInsurance struct {
LifeInsurancePolicies []UnifiedResponseInsuranceLifeInsurancePolicy `json:"life_insurance_policies"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
LifeInsurancePolicies respjson.Field
ExtraFields map[string]respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
func (UnifiedResponseInsurance) RawJSON ¶
func (r UnifiedResponseInsurance) RawJSON() string
Returns the unmodified JSON received from the API
func (*UnifiedResponseInsurance) UnmarshalJSON ¶
func (r *UnifiedResponseInsurance) UnmarshalJSON(data []byte) error
type UnifiedResponseInsuranceLifeInsurancePolicy ¶
type UnifiedResponseInsuranceLifeInsurancePolicy struct {
// Additional information specific to the policy
AdditionalInfo any `json:"additional_info"`
// Name of the life assured
LifeAssured string `json:"life_assured"`
// Name of the insurance policy
PolicyName string `json:"policy_name"`
// Insurance policy number
PolicyNumber string `json:"policy_number"`
// Premium amount
PremiumAmount float64 `json:"premium_amount"`
// Frequency of premium payment (e.g., Annual, Monthly)
PremiumFrequency string `json:"premium_frequency"`
// Insurance company name
Provider string `json:"provider"`
// Status of the policy (e.g., Active, Lapsed)
Status string `json:"status"`
// Sum assured amount
SumAssured float64 `json:"sum_assured"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
AdditionalInfo respjson.Field
LifeAssured respjson.Field
PolicyName respjson.Field
PolicyNumber respjson.Field
PremiumAmount respjson.Field
PremiumFrequency respjson.Field
Provider respjson.Field
Status respjson.Field
SumAssured respjson.Field
ExtraFields map[string]respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
func (UnifiedResponseInsuranceLifeInsurancePolicy) RawJSON ¶
func (r UnifiedResponseInsuranceLifeInsurancePolicy) RawJSON() string
Returns the unmodified JSON received from the API
func (*UnifiedResponseInsuranceLifeInsurancePolicy) UnmarshalJSON ¶
func (r *UnifiedResponseInsuranceLifeInsurancePolicy) UnmarshalJSON(data []byte) error
type UnifiedResponseInvestor ¶
type UnifiedResponseInvestor struct {
// Address of the investor
Address string `json:"address"`
// CAS ID of the investor (only for NSDL and CDSL)
CasID string `json:"cas_id"`
// Email address of the investor
Email string `json:"email" format:"email"`
// Mobile number of the investor
Mobile string `json:"mobile"`
// Name of the investor
Name string `json:"name"`
// PAN (Permanent Account Number) of the investor
Pan string `json:"pan"`
// Postal code of the investor's address
Pincode string `json:"pincode"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
Address respjson.Field
CasID respjson.Field
Email respjson.Field
Mobile respjson.Field
Name respjson.Field
Pan respjson.Field
Pincode respjson.Field
ExtraFields map[string]respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
func (UnifiedResponseInvestor) RawJSON ¶
func (r UnifiedResponseInvestor) RawJSON() string
Returns the unmodified JSON received from the API
func (*UnifiedResponseInvestor) UnmarshalJSON ¶
func (r *UnifiedResponseInvestor) UnmarshalJSON(data []byte) error
type UnifiedResponseMeta ¶
type UnifiedResponseMeta struct {
// Type of CAS detected and processed
//
// Any of "NSDL", "CDSL", "CAMS_KFINTECH".
CasType string `json:"cas_type"`
// Timestamp when the response was generated
GeneratedAt time.Time `json:"generated_at" format:"date-time"`
StatementPeriod UnifiedResponseMetaStatementPeriod `json:"statement_period"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
CasType respjson.Field
GeneratedAt respjson.Field
StatementPeriod respjson.Field
ExtraFields map[string]respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
func (UnifiedResponseMeta) RawJSON ¶
func (r UnifiedResponseMeta) RawJSON() string
Returns the unmodified JSON received from the API
func (*UnifiedResponseMeta) UnmarshalJSON ¶
func (r *UnifiedResponseMeta) UnmarshalJSON(data []byte) error
type UnifiedResponseMetaStatementPeriod ¶
type UnifiedResponseMetaStatementPeriod struct {
// Start date of the statement period
From time.Time `json:"from" format:"date"`
// End date of the statement period
To time.Time `json:"to" format:"date"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
From respjson.Field
To respjson.Field
ExtraFields map[string]respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
func (UnifiedResponseMetaStatementPeriod) RawJSON ¶
func (r UnifiedResponseMetaStatementPeriod) RawJSON() string
Returns the unmodified JSON received from the API
func (*UnifiedResponseMetaStatementPeriod) UnmarshalJSON ¶
func (r *UnifiedResponseMetaStatementPeriod) UnmarshalJSON(data []byte) error
type UnifiedResponseMutualFund ¶
type UnifiedResponseMutualFund struct {
// Additional folio information
AdditionalInfo UnifiedResponseMutualFundAdditionalInfo `json:"additional_info"`
// Asset Management Company name
Amc string `json:"amc"`
// Folio number
FolioNumber string `json:"folio_number"`
// List of account holders linked to this mutual fund folio
LinkedHolders []UnifiedResponseMutualFundLinkedHolder `json:"linked_holders"`
// Registrar and Transfer Agent name
Registrar string `json:"registrar"`
Schemes []UnifiedResponseMutualFundScheme `json:"schemes"`
// Total value of the folio
Value float64 `json:"value"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
AdditionalInfo respjson.Field
Amc respjson.Field
FolioNumber respjson.Field
LinkedHolders respjson.Field
Registrar respjson.Field
Schemes respjson.Field
Value respjson.Field
ExtraFields map[string]respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
func (UnifiedResponseMutualFund) RawJSON ¶
func (r UnifiedResponseMutualFund) RawJSON() string
Returns the unmodified JSON received from the API
func (*UnifiedResponseMutualFund) UnmarshalJSON ¶
func (r *UnifiedResponseMutualFund) UnmarshalJSON(data []byte) error
type UnifiedResponseMutualFundAdditionalInfo ¶
type UnifiedResponseMutualFundAdditionalInfo struct {
// KYC status of the folio
KYC string `json:"kyc"`
// PAN associated with the folio
Pan string `json:"pan"`
// PAN KYC status
Pankyc string `json:"pankyc"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
KYC respjson.Field
Pan respjson.Field
Pankyc respjson.Field
ExtraFields map[string]respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
Additional folio information
func (UnifiedResponseMutualFundAdditionalInfo) RawJSON ¶
func (r UnifiedResponseMutualFundAdditionalInfo) RawJSON() string
Returns the unmodified JSON received from the API
func (*UnifiedResponseMutualFundAdditionalInfo) UnmarshalJSON ¶
func (r *UnifiedResponseMutualFundAdditionalInfo) UnmarshalJSON(data []byte) error
type UnifiedResponseMutualFundLinkedHolder ¶ added in v0.1.0
type UnifiedResponseMutualFundLinkedHolder struct {
// Name of the account holder
Name string `json:"name"`
// PAN of the account holder
Pan string `json:"pan"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
Name respjson.Field
Pan respjson.Field
ExtraFields map[string]respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
func (UnifiedResponseMutualFundLinkedHolder) RawJSON ¶ added in v0.1.0
func (r UnifiedResponseMutualFundLinkedHolder) RawJSON() string
Returns the unmodified JSON received from the API
func (*UnifiedResponseMutualFundLinkedHolder) UnmarshalJSON ¶ added in v0.1.0
func (r *UnifiedResponseMutualFundLinkedHolder) UnmarshalJSON(data []byte) error
type UnifiedResponseMutualFundScheme ¶
type UnifiedResponseMutualFundScheme struct {
// Additional information specific to the scheme
AdditionalInfo UnifiedResponseMutualFundSchemeAdditionalInfo `json:"additional_info"`
// Cost of investment
Cost float64 `json:"cost"`
Gain UnifiedResponseMutualFundSchemeGain `json:"gain"`
// ISIN code of the scheme
Isin string `json:"isin"`
// Scheme name
Name string `json:"name"`
Nav float64 `json:"nav"`
// List of nominees
Nominees []string `json:"nominees"`
Transactions []UnifiedResponseMutualFundSchemeTransaction `json:"transactions"`
// Type of mutual fund scheme
//
// Any of "Equity", "Debt", "Hybrid", "Other".
Type string `json:"type"`
// Number of units held
Units float64 `json:"units"`
// Current market value of the holding
Value float64 `json:"value"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
AdditionalInfo respjson.Field
Cost respjson.Field
Gain respjson.Field
Isin respjson.Field
Name respjson.Field
Nav respjson.Field
Nominees respjson.Field
Transactions respjson.Field
Type respjson.Field
Units respjson.Field
Value respjson.Field
ExtraFields map[string]respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
func (UnifiedResponseMutualFundScheme) RawJSON ¶
func (r UnifiedResponseMutualFundScheme) RawJSON() string
Returns the unmodified JSON received from the API
func (*UnifiedResponseMutualFundScheme) UnmarshalJSON ¶
func (r *UnifiedResponseMutualFundScheme) UnmarshalJSON(data []byte) error
type UnifiedResponseMutualFundSchemeAdditionalInfo ¶
type UnifiedResponseMutualFundSchemeAdditionalInfo struct {
// Financial advisor name (CAMS/KFintech)
Advisor string `json:"advisor"`
// AMFI code for the scheme (CAMS/KFintech)
Amfi string `json:"amfi"`
// Closing balance units for the statement period
CloseUnits float64 `json:"close_units,nullable"`
// Opening balance units for the statement period
OpenUnits float64 `json:"open_units,nullable"`
// RTA code for the scheme (CAMS/KFintech)
RtaCode string `json:"rta_code"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
Advisor respjson.Field
Amfi respjson.Field
CloseUnits respjson.Field
OpenUnits respjson.Field
RtaCode respjson.Field
ExtraFields map[string]respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
Additional information specific to the scheme
func (UnifiedResponseMutualFundSchemeAdditionalInfo) RawJSON ¶
func (r UnifiedResponseMutualFundSchemeAdditionalInfo) RawJSON() string
Returns the unmodified JSON received from the API
func (*UnifiedResponseMutualFundSchemeAdditionalInfo) UnmarshalJSON ¶
func (r *UnifiedResponseMutualFundSchemeAdditionalInfo) UnmarshalJSON(data []byte) error
type UnifiedResponseMutualFundSchemeGain ¶
type UnifiedResponseMutualFundSchemeGain struct {
// Absolute gain or loss
Absolute float64 `json:"absolute"`
// Percentage gain or loss
Percentage float64 `json:"percentage"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
Absolute respjson.Field
Percentage respjson.Field
ExtraFields map[string]respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
func (UnifiedResponseMutualFundSchemeGain) RawJSON ¶
func (r UnifiedResponseMutualFundSchemeGain) RawJSON() string
Returns the unmodified JSON received from the API
func (*UnifiedResponseMutualFundSchemeGain) UnmarshalJSON ¶
func (r *UnifiedResponseMutualFundSchemeGain) UnmarshalJSON(data []byte) error
type UnifiedResponseMutualFundSchemeTransaction ¶
type UnifiedResponseMutualFundSchemeTransaction struct {
// Additional transaction-specific fields that vary by source
AdditionalInfo UnifiedResponseMutualFundSchemeTransactionAdditionalInfo `json:"additional_info"`
// Transaction amount in currency (computed from units × price/NAV)
Amount float64 `json:"amount,nullable"`
// Balance units after transaction
Balance float64 `json:"balance"`
// Transaction date (YYYY-MM-DD)
Date time.Time `json:"date" format:"date"`
// Transaction description/particulars
Description string `json:"description"`
// Dividend rate (for DIVIDEND_PAYOUT transactions)
DividendRate float64 `json:"dividend_rate,nullable"`
Nav float64 `json:"nav,nullable"`
// Transaction type. Possible values are PURCHASE, PURCHASE_SIP, REDEMPTION,
// SWITCH_IN, SWITCH_IN_MERGER, SWITCH_OUT, SWITCH_OUT_MERGER, DIVIDEND_PAYOUT,
// DIVIDEND_REINVEST, SEGREGATION, STAMP_DUTY_TAX, TDS_TAX, STT_TAX, MISC,
// REVERSAL, UNKNOWN.
//
// Any of "PURCHASE", "PURCHASE_SIP", "REDEMPTION", "SWITCH_IN",
// "SWITCH_IN_MERGER", "SWITCH_OUT", "SWITCH_OUT_MERGER", "DIVIDEND_PAYOUT",
// "DIVIDEND_REINVEST", "SEGREGATION", "STAMP_DUTY_TAX", "TDS_TAX", "STT_TAX",
// "MISC", "REVERSAL", "UNKNOWN".
Type string `json:"type"`
// Number of units involved in transaction
Units float64 `json:"units"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
AdditionalInfo respjson.Field
Amount respjson.Field
Balance respjson.Field
Date respjson.Field
Description respjson.Field
DividendRate respjson.Field
Nav respjson.Field
Type respjson.Field
Units respjson.Field
ExtraFields map[string]respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
Unified transaction schema for all holding types (MF folios, equities, bonds, etc.)
func (UnifiedResponseMutualFundSchemeTransaction) RawJSON ¶
func (r UnifiedResponseMutualFundSchemeTransaction) RawJSON() string
Returns the unmodified JSON received from the API
func (*UnifiedResponseMutualFundSchemeTransaction) UnmarshalJSON ¶
func (r *UnifiedResponseMutualFundSchemeTransaction) UnmarshalJSON(data []byte) error
type UnifiedResponseMutualFundSchemeTransactionAdditionalInfo ¶ added in v0.1.0
type UnifiedResponseMutualFundSchemeTransactionAdditionalInfo struct {
// Capital withdrawal amount (CDSL MF transactions)
CapitalWithdrawal float64 `json:"capital_withdrawal"`
// Units credited (demat transactions)
Credit float64 `json:"credit"`
// Units debited (demat transactions)
Debit float64 `json:"debit"`
// Income distribution amount (CDSL MF transactions)
IncomeDistribution float64 `json:"income_distribution"`
// Order/transaction reference number (demat transactions)
OrderNo string `json:"order_no"`
// Price per unit (NSDL/CDSL MF transactions)
Price float64 `json:"price"`
// Stamp duty charged
StampDuty float64 `json:"stamp_duty"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
CapitalWithdrawal respjson.Field
Credit respjson.Field
Debit respjson.Field
IncomeDistribution respjson.Field
OrderNo respjson.Field
Price respjson.Field
StampDuty respjson.Field
ExtraFields map[string]respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
Additional transaction-specific fields that vary by source
func (UnifiedResponseMutualFundSchemeTransactionAdditionalInfo) RawJSON ¶ added in v0.1.0
func (r UnifiedResponseMutualFundSchemeTransactionAdditionalInfo) RawJSON() string
Returns the unmodified JSON received from the API
func (*UnifiedResponseMutualFundSchemeTransactionAdditionalInfo) UnmarshalJSON ¶ added in v0.1.0
func (r *UnifiedResponseMutualFundSchemeTransactionAdditionalInfo) UnmarshalJSON(data []byte) error
type UnifiedResponseNp ¶ added in v0.1.0
type UnifiedResponseNp struct {
// Additional information specific to the NPS account
AdditionalInfo any `json:"additional_info"`
// Central Record Keeping Agency name
Cra string `json:"cra"`
Funds []UnifiedResponseNpFund `json:"funds"`
// List of account holders linked to this NPS account
LinkedHolders []UnifiedResponseNpLinkedHolder `json:"linked_holders"`
// Permanent Retirement Account Number (PRAN)
Pran string `json:"pran"`
// Total value of the NPS account
Value float64 `json:"value"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
AdditionalInfo respjson.Field
Cra respjson.Field
Funds respjson.Field
LinkedHolders respjson.Field
Pran respjson.Field
Value respjson.Field
ExtraFields map[string]respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
func (UnifiedResponseNp) RawJSON ¶ added in v0.1.0
func (r UnifiedResponseNp) RawJSON() string
Returns the unmodified JSON received from the API
func (*UnifiedResponseNp) UnmarshalJSON ¶ added in v0.1.0
func (r *UnifiedResponseNp) UnmarshalJSON(data []byte) error
type UnifiedResponseNpFund ¶ added in v0.1.0
type UnifiedResponseNpFund struct {
// Additional information specific to the NPS fund
AdditionalInfo UnifiedResponseNpFundAdditionalInfo `json:"additional_info"`
// Cost of investment
Cost float64 `json:"cost"`
// Name of the NPS fund
Name string `json:"name"`
Nav float64 `json:"nav"`
// Number of units held
Units float64 `json:"units"`
// Current market value of the holding
Value float64 `json:"value"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
AdditionalInfo respjson.Field
Cost respjson.Field
Name respjson.Field
Nav respjson.Field
Units respjson.Field
Value respjson.Field
ExtraFields map[string]respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
func (UnifiedResponseNpFund) RawJSON ¶ added in v0.1.0
func (r UnifiedResponseNpFund) RawJSON() string
Returns the unmodified JSON received from the API
func (*UnifiedResponseNpFund) UnmarshalJSON ¶ added in v0.1.0
func (r *UnifiedResponseNpFund) UnmarshalJSON(data []byte) error
type UnifiedResponseNpFundAdditionalInfo ¶ added in v0.1.0
type UnifiedResponseNpFundAdditionalInfo struct {
// Fund manager name
Manager string `json:"manager"`
// NPS tier (Tier I or Tier II)
//
// Any of 1, 2.
Tier float64 `json:"tier,nullable"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
Manager respjson.Field
Tier respjson.Field
ExtraFields map[string]respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
Additional information specific to the NPS fund
func (UnifiedResponseNpFundAdditionalInfo) RawJSON ¶ added in v0.1.0
func (r UnifiedResponseNpFundAdditionalInfo) RawJSON() string
Returns the unmodified JSON received from the API
func (*UnifiedResponseNpFundAdditionalInfo) UnmarshalJSON ¶ added in v0.1.0
func (r *UnifiedResponseNpFundAdditionalInfo) UnmarshalJSON(data []byte) error
type UnifiedResponseNpLinkedHolder ¶ added in v0.1.0
type UnifiedResponseNpLinkedHolder struct {
// Name of the account holder
Name string `json:"name"`
// PAN of the account holder
Pan string `json:"pan"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
Name respjson.Field
Pan respjson.Field
ExtraFields map[string]respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
func (UnifiedResponseNpLinkedHolder) RawJSON ¶ added in v0.1.0
func (r UnifiedResponseNpLinkedHolder) RawJSON() string
Returns the unmodified JSON received from the API
func (*UnifiedResponseNpLinkedHolder) UnmarshalJSON ¶ added in v0.1.0
func (r *UnifiedResponseNpLinkedHolder) UnmarshalJSON(data []byte) error
type UnifiedResponseSummary ¶
type UnifiedResponseSummary struct {
Accounts UnifiedResponseSummaryAccounts `json:"accounts"`
// Total portfolio value across all accounts
TotalValue float64 `json:"total_value"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
Accounts respjson.Field
TotalValue respjson.Field
ExtraFields map[string]respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
func (UnifiedResponseSummary) RawJSON ¶
func (r UnifiedResponseSummary) RawJSON() string
Returns the unmodified JSON received from the API
func (*UnifiedResponseSummary) UnmarshalJSON ¶
func (r *UnifiedResponseSummary) UnmarshalJSON(data []byte) error
type UnifiedResponseSummaryAccounts ¶
type UnifiedResponseSummaryAccounts struct {
Demat UnifiedResponseSummaryAccountsDemat `json:"demat"`
Insurance UnifiedResponseSummaryAccountsInsurance `json:"insurance"`
MutualFunds UnifiedResponseSummaryAccountsMutualFunds `json:"mutual_funds"`
Nps UnifiedResponseSummaryAccountsNps `json:"nps"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
Demat respjson.Field
Insurance respjson.Field
MutualFunds respjson.Field
Nps respjson.Field
ExtraFields map[string]respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
func (UnifiedResponseSummaryAccounts) RawJSON ¶
func (r UnifiedResponseSummaryAccounts) RawJSON() string
Returns the unmodified JSON received from the API
func (*UnifiedResponseSummaryAccounts) UnmarshalJSON ¶
func (r *UnifiedResponseSummaryAccounts) UnmarshalJSON(data []byte) error
type UnifiedResponseSummaryAccountsDemat ¶
type UnifiedResponseSummaryAccountsDemat struct {
// Number of demat accounts
Count int64 `json:"count"`
// Total value of demat accounts
TotalValue float64 `json:"total_value"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
Count respjson.Field
TotalValue respjson.Field
ExtraFields map[string]respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
func (UnifiedResponseSummaryAccountsDemat) RawJSON ¶
func (r UnifiedResponseSummaryAccountsDemat) RawJSON() string
Returns the unmodified JSON received from the API
func (*UnifiedResponseSummaryAccountsDemat) UnmarshalJSON ¶
func (r *UnifiedResponseSummaryAccountsDemat) UnmarshalJSON(data []byte) error
type UnifiedResponseSummaryAccountsInsurance ¶
type UnifiedResponseSummaryAccountsInsurance struct {
// Number of insurance policies
Count int64 `json:"count"`
// Total value of insurance policies
TotalValue float64 `json:"total_value"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
Count respjson.Field
TotalValue respjson.Field
ExtraFields map[string]respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
func (UnifiedResponseSummaryAccountsInsurance) RawJSON ¶
func (r UnifiedResponseSummaryAccountsInsurance) RawJSON() string
Returns the unmodified JSON received from the API
func (*UnifiedResponseSummaryAccountsInsurance) UnmarshalJSON ¶
func (r *UnifiedResponseSummaryAccountsInsurance) UnmarshalJSON(data []byte) error
type UnifiedResponseSummaryAccountsMutualFunds ¶
type UnifiedResponseSummaryAccountsMutualFunds struct {
// Number of mutual fund folios
Count int64 `json:"count"`
// Total value of mutual funds
TotalValue float64 `json:"total_value"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
Count respjson.Field
TotalValue respjson.Field
ExtraFields map[string]respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
func (UnifiedResponseSummaryAccountsMutualFunds) RawJSON ¶
func (r UnifiedResponseSummaryAccountsMutualFunds) RawJSON() string
Returns the unmodified JSON received from the API
func (*UnifiedResponseSummaryAccountsMutualFunds) UnmarshalJSON ¶
func (r *UnifiedResponseSummaryAccountsMutualFunds) UnmarshalJSON(data []byte) error
type UnifiedResponseSummaryAccountsNps ¶ added in v0.1.0
type UnifiedResponseSummaryAccountsNps struct {
// Number of NPS accounts
Count int64 `json:"count"`
// Total value of NPS accounts
TotalValue float64 `json:"total_value"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
Count respjson.Field
TotalValue respjson.Field
ExtraFields map[string]respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
func (UnifiedResponseSummaryAccountsNps) RawJSON ¶ added in v0.1.0
func (r UnifiedResponseSummaryAccountsNps) RawJSON() string
Returns the unmodified JSON received from the API
func (*UnifiedResponseSummaryAccountsNps) UnmarshalJSON ¶ added in v0.1.0
func (r *UnifiedResponseSummaryAccountsNps) UnmarshalJSON(data []byte) error
Directories
¶
| Path | Synopsis |
|---|---|
|
encoding/json
Package json implements encoding and decoding of JSON as defined in RFC 7159.
|
Package json implements encoding and decoding of JSON as defined in RFC 7159. |
|
encoding/json/shims
This package provides shims over Go 1.2{2,3} APIs which are missing from Go 1.22, and used by the Go 1.24 encoding/json package.
|
This package provides shims over Go 1.2{2,3} APIs which are missing from Go 1.22, and used by the Go 1.24 encoding/json package. |
|
packages
|
|
|
shared
|
|