Use binary.com bees to open positions

Hi everyone, i need some help to fix a problem with binary.com bees. I'm looking for the correct syntax to open a CALL or PUT position on the cross eur / usd with a 30 minute deadline. I used the code below. Where am I wrong?

My request:

{
"buy": 1,
"price" : 1.0750,
"parameters": {
"amount": 1,
"basis": "stake",
"contract_type": "CALL",
"currency": "USD",
"duration": 60,
"symbol": "eurusd",
"barrier": -1,
"barrier2": 1,
"req_id": 100
}

}

Response API Service

{
"echo_req": {
"buy": 1,
"parameters": {
"amount": 1,
"barrier": -1,
"barrier2": 1,
"basis": "stake",
"contract_type": "CALL",
"currency": "EUR",
"duration": 60,
"req_id": 100,
"symbol": "eurusd"
},
"price": 1.075
},
"error": {
"code": "AuthorizationRequired",
"message": "Please log in."
},
"msg_type": "buy"
}

Comments

Sign In or Register to comment.