Represents a Binance task to solve captcha challenges with a specific payload. Use only to log in with your account. Attributes: websiteURL: The address of the main page where the captcha is solved. websiteKey: A unique parameter for your website's section. validate
| 6 | |
| 7 | |
| 8 | class BinanceTask(TaskPayload, UserAgentPayload): |
| 9 | """ |
| 10 | Represents a Binance task to solve captcha challenges with a specific payload. Use only to log in with your account. |
| 11 | |
| 12 | Attributes: |
| 13 | websiteURL: The address of the main page where the captcha is solved. |
| 14 | websiteKey: A unique parameter for your website's section. |
| 15 | validateId: A dynamic key representing the value of the parameter validateId, securityId, or |
| 16 | securityCheckResponseValidateId. |
| 17 | proxy: Optional proxy settings used for handling requests during captcha solving. |
| 18 | """ |
| 19 | type: str = Field(default="BinanceTask", frozen=True) |
| 20 | websiteURL: str = Field(..., description="The address of the main page where the captcha is solved.") |
| 21 | websiteKey: str = Field(..., description="A unique parameter for your website's section.") |
| 22 | validateId: str = Field(..., description="A dynamic key. The value of the parameter validateId, securityId, " |
| 23 | "or securityCheckResponseValidateId.") |
| 24 | proxy: Optional[ProxyPayload] = Field(default=None, description="Proxy settings.") |
| 25 | |
| 26 | def to_request(self) -> dict[str, Any]: |
| 27 | base = self.model_dump(exclude_none=True, by_alias=True) |
| 28 | proxy_dict = base.pop("proxy", {}) |
| 29 | if proxy_dict: |
| 30 | base.update(proxy_dict) |
| 31 | return base |
no outgoing calls