Binance API no longer working in Streamlit Cloud

For some reason, the Binance API is no longer working when you deploy an app that uses it in Streamlit Cloud.

I wrote this code:

import requests
import json
import streamlit as st

def get_orders(pair, depth):
    response = requests.get(f'{pair}&limit={depth}')
    byte_json = response.content
    orders_json = json.loads(byte_json)
    return orders_json

st.write(get_orders('BTCBUSD', 5))

On my computer, it works perfectly.

But when I run in Streamlit Cloud, I receive that error.
It worked in September of 2022, but is no longer working.

Does anyone know any workaround that I can use to solve that?

For this specific case (server in the US), use instead of

This seems to be not documented at all but it worked for me.

The solution is to use instead of

I tried but not worked here.

I deployed a test application:

Both and work from Streamlit Cloud, but they return different data. In my tests from a non-restricted location returned the same data as