Giter VIP home page Giter VIP logo

binance-api-step-by-step-guide's People

Contributors

pythonforforex avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

binance-api-step-by-step-guide's Issues

requests.exceptions.ConnectionError: HTTPSConnectionPool(host='api.binance.com', port=443): Max retries exceeded with url: /api/v3/ping (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x000000306BFA9340>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it'))

hi how are you .what are you doing ?

i have a error about request to binance .i request with colab google have not error but with my windows have a error .
thank you very much for reply me .

i search very much in multiple websites but i can not solve my problem .

good luck
god willing

index error boolean series

hi
i have a error in line :
mask=df.date >= start_time
df =df.loc[mask] #?????

after bigger from 1000 and lower 500 record fetch .

error:
IndexingError: Unalignable boolean Series provided as indexer (index of the boolean Series and of the indexed object do not match).

thank you very much for reply me .

Problem with websocket example

in example websocket_stream.py:

bsm = BinanceSocketManager(client)
conn_key = bsm.start_symbol_ticker_socket('BTCUSDT', btc_trade_history)

the problem is that method start_symbol_ticker_socket is available in ThreadedWebsocketManager class, not BinanceSocketManager.

Any idea how to fix this?

sleep in realtime after mask

hi how are you

after 10 to 15 period get price with "start_symbol_ticker_socket" i have a error "ValueError: cannot reindex from a duplicate axis" and i set a sleep after mask df then i have late error but final after 20 to 20 period get data i have again error .but i have not row in dataframe duplicate and i have not columns in dataframe duplicate .

thank you very much for reply me .

god willing

peroid time

hi how are you what are you doing?

i have a question about period time slice ?

start_time = df.date.iloc[-1] - pd.Timedelta(minutes=1)

this is a 1 minute previous . what is meaning of we have 60 records that the every record is a second get price .no meaning of one previous candle 1 minute, it is 60 price, 60 previous time(second) .

what is differ 60 price previous with 60 candle close price ?

thank you very much for reply me .
good luck
god willing

Error after bsm.stop()

Hello,
At the end of my code I've added:
bsm.stop()
sleep (5)

To allow proper socket closure before exit, however I'm getting this error on exit:
Task was destroyed but it is pending!
task: <Task pending coro=<ReconnectingWebsocket._read_loop() done, defined at ...

Please help me solve it...

solution error :IndexingError: Unalignable boolean Series provided as indexer (index of the boolean Series and of the indexed object do not match)."

i have error ;
IndexingError: Unalignable boolean Series provided as indexer (index of the boolean Series and of the indexed object do not match).
then i put on a sleep function after mask dataframe:

df = df.loc[df.date >= start_time]
sleep(0.6)

then my script is ok

thank you very much for reply me about sleep function in your script .

your script is good and your tutorials about API binance is good but please more description about your code .

good luck
god willing

IndexingError: Unalignable boolean Series provided as indexer (index of the boolean Series and of the indexed object do not match).

hi how are you . i run your code after 510 record fetch then i have a error :

IndexingError: Unalignable boolean Series provided as indexer (index of the boolean Series and of the indexed object do not match).

in the mask df:
df = df.loc[df.date >= start_time]

i do not know why ?
because all problems is ok and correct .

thank you very much for reply me .

god willing

websocket vs ThreadedWebsocketManager

hi

what is different "websocket " or "ThreadedWebsocketManager" ?
thank you very much for more description about types websocket and use in indicators strategy or percent strategy.

or what is different prices in strategy .what is meaning of which is price such as "ticker or candle" use or suitable for indicators strategy or percent strategy.

god willing

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.