Order Rejected using the sample app

1 post / 0 new
anthonyk
Order Rejected using the sample app

Hello !
I'm trying the API using the latest javascript sample code.
I can login with my demo credentials, search in the market and watch the bid and offer values in real time, but when I try to buy, I get a REJECTED error :

confirm message: {"direction":"BUY","epic":"UB.D.GPROUS.CASH.IP","stopLevel":null,"limitLevel":null,"dealReference":"SHQ7NT8K89E2BHB","dealId":"DIAAAAAQLLRJ2AK","limitDistance":null,"stopDistance":null,"expiry":null,"affectedDeals":[],"dealStatus":"REJECTED","guaranteedStop":false,"trailingStop":false,"level":null,"reason":"UNKNOWN","status":null,"size":null}

Can someone help me to figure this out ?
Thank you so much !
Best regards,
Anthony