{"error":"INTERNAL","error_details":"internal error","message":"internal error"} for order

Here is my code below:

from coinbase import jwt_generator
#api_key = “API Key”
#api_secret= “SECRET”

api_key = “”
api_secret = “”

request_method = “POST”
#request_method = “GET”
#request_path = “/api/v3/brokerage/accounts”
request_path = “/api/v3/brokerage/orders”
def main():
jwt_uri = jwt_generator.format_jwt_uri(request_method, request_path)
jwt_token = jwt_generator.build_rest_jwt(jwt_uri, api_key, api_secret)
print(f"export JWT={jwt_token}")
return jwt_token

jwt_token = main()

import http.client
import hmac
import hashlib
import json
import time
import base64

#product_id = ‘BTC-USD’
#granularity = ‘ONE_HOUR’
int_order_id = 23456
product_name =“”
conn = http.client.HTTPSConnection(“api.coinbase.com”)
#payload = “{"client_order_id":” + “"” + str(int_order_id) + “"” + “,"product_id":"XLM-USD","side":"BUY","order_configuration": {"market_market_ioc": {"quote_size":"10"}}}”
payload = json.dumps({
“client_order_id”: “asss”,
“product_id”: “DOGE-GBP”,
“order_configuration”: {
“limit_limit_gtc”: {
“base_size”: “10”,
“limit_price”: “0.125”
}
}
})
#payload = json.dumps({
#“client_order_id”: “223229e8”,
#“product_id”: “DOGE-GBP”,
#“order_configuration”: {
#“market_market_ioc”: {
#“quote_size”: “50”

}

#}
#})
#print(payload)
#payload = ‘’ # i assume this if you doing a post command
headers = {
‘Content-Type’: ‘application/json’,
‘Authorization’: f’Bearer {jwt_token}’
}
start_date = str(int(time.time()-(60**2))) #str(datetime.strptime(‘2024-01-01’, ‘%Y-%m-%d’).timestamp())
end_date = str(int(time.time()))

conn.request(“POST”, f’/api/v3/brokerage/orders’, payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode(“utf-8”))

I know jwt token generation is correct as i get my accounts, but when i try to order any coins i get the following error: {“error”:“INTERNAL”,“error_details”:“internal error”,“message”:“internal error”}

Thanks in Advance

Please learn how to use Preformatted text option!

You are missing side in your order configuration! I just tested that!

Please can you give me an example where side would go, i still learning.

Thanks

Andrew

Read the documentation:
https://docs.cloud.coinbase.com/advanced-trade-api/reference/retailbrokerageapi_postorder

Ok i have found it in.