Used Java and Spring, create microservice, which will connect to websocket chanel Diff.Book Depth Streams, create and save in memory local copy order book by symbol BTCUSD_PERP.
Microservice ought to have rest controller, which must receives parameters and responses equal https://binance-docs.github.io/apidocs/delivery/en/#order-book.
Description https://binance-docs.github.io/apidocs/delivery/en/#diff-book-depth-streams ΠΈ https://binance-docs.github.io/apidocs/delivery/en/#how-to-manage-a-local-order-book-correctly
For work with websockets you should use https://github.com/binance/binance-futures-connector-java