Skip to content

API Reference


API Reference / Constants / TradingErrorCode

Variable: TradingErrorCode ​

const TradingErrorCode: object

Defined in: src/constants.ts:315

Trading API error codes (DH-900 series).

Type Declaration ​

INVALID_AUTHENTICATION ​

readonly INVALID_AUTHENTICATION: "DH-901" = "DH-901"

INVALID_ACCESS ​

readonly INVALID_ACCESS: "DH-902" = "DH-902"

USER_ACCOUNT ​

readonly USER_ACCOUNT: "DH-903" = "DH-903"

RATE_LIMIT ​

readonly RATE_LIMIT: "DH-904" = "DH-904"

INPUT_EXCEPTION ​

readonly INPUT_EXCEPTION: "DH-905" = "DH-905"

ORDER_ERROR ​

readonly ORDER_ERROR: "DH-906" = "DH-906"

DATA_ERROR ​

readonly DATA_ERROR: "DH-907" = "DH-907"

INTERNAL_SERVER_ERROR ​

readonly INTERNAL_SERVER_ERROR: "DH-908" = "DH-908"

NETWORK_ERROR ​

readonly NETWORK_ERROR: "DH-909" = "DH-909"

OTHERS ​

readonly OTHERS: "DH-910" = "DH-910"

NO_HOLDINGS ​

readonly NO_HOLDINGS: "DH-1111" = "DH-1111"

Community project — not affiliated with Dhan. MIT License.