Creating Limit order - invalid timestamp

Trying to create a limit order in Pyton as a test. I have this:

payload = json.dumps({
“client_order_id”: inclient_id,
“product_id”: “BAT-USD”,
“side”: “BUY”,
“order_configuration”: {
“limit_limit_gtd”: {
“base_size”: “11”,
“limit_price”: “.01”,
“end_time”: “2023-07-26T17:01”,
“post_only”: False
}
}
})

And it gives this error.

{“error”:“unknown”,“error_details”:“proto: (line 1:198): invalid google.protobuf.Timestamp value "2023-07-26T17:01"”,“message”:“proto: (line 1:198): invalid google.protobuf.Timestamp value "2023-07-26T17:01"”}

Any help is appreciated.

I got this to work with a gtc limit order. I’m good.

1 Like

Hi @Hawkster! glad to hear that! Do let us know in case you have any more questions or concerns. Keep sharing your feedbacks.

@Hawkster, was it the missing timezone info? Is your solution: 2023-07-26T17:01:01.000Z?