routers.okx_authentication

class routers.okx_authentication.InstIdAPIKeyCreationRequestForm(*, username: str, password: str, instID: str, expire_time: int | None = None)[source]

Bases: BaseModel

expire_time: int | None
instID: str
model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

model_fields: ClassVar[dict[str, FieldInfo]] = {'expire_time': FieldInfo(annotation=Union[int, NoneType], required=False), 'instID': FieldInfo(annotation=str, required=True), 'password': FieldInfo(annotation=str, required=True), 'username': FieldInfo(annotation=str, required=True)}

Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo].

This replaces Model.__fields__ from Pydantic V1.

password: str
username: str
async routers.okx_authentication.check_token_against_instrument(token: str, reference_instID: str)[source]
async routers.okx_authentication.create_instrument_api_key(request: InstIdAPIKeyCreationRequestForm = Depends(InstIdAPIKeyCreationRequestForm), current_user=Depends(check_token_validity))[source]
Inheritance diagram of routers.okx_authentication