Skip to content

用java版本请求交易类数据报 50102错误 #31

@pipi007

Description

@pipi007

报错如下:
20:04:49.639 [main] INFO com.okex.open.api.client.APIHttpClient -
Request(2023-07-04 20:04:49:637):
Url: https://aws.okx.com/api/v5/account/balance?ccy=USDT
Method: GET
Headers:
Accept: application/json
Content-Type: application/json; charset=UTF-8
Cookie: locale=en_US
OK-ACCESS-KEY: e6de4122-97cd-484a-91c0-1fda26b6ca01
OK-ACCESS-PASSPHRASE: Songbo@123
OK-ACCESS-SIGN: MuKYoZHZvQKbzTU5/4ktT7zow2p4XHiT5zSjg+/SZZ4=
OK-ACCESS-TIMESTAMP: 2023-07-04T12:04:49.584Z
x-simulated-trading: 1
request body:
preHash: 2023-07-04T12:04:49.584ZGET/api/v5/account/balance?ccy=USDT
20:04:50.280 [main] INFO com.okex.open.api.client.APIClient -
Response(2023-07-04 20:04:50:280):
Status: 401
Message:
Response Body:{"code":"50102","data":[],"msg":"Timestamp request expired"}

com.okex.open.api.exception.APIException: 50102 : Timestamp request expired

这个时间戳应该怎么设置啊?大侠教我

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions