Recommand · October 14, 2021 0

REST API vs Websocket for buying an asset

I have confusion between Rest API and Websocket. Although WS is faster than REST API in terms of data fetching. My application is to Buy a Coin(any item) on any Exchange (Binance, Kucoin, Coinbase) as fast as I can. In the documentations, Every exchange provides Endpoints for order place(Buying the coin) only for REST API. They only provide a Coin price stream for Websockets.
Is it Possible to Buy or post something using Websockets or do we have to use REST API for that Purpose?
Thanks in Advance