I am needing Help for devolping using web3.py #60183
Unanswered
grabbytabby
asked this question in
Feed
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Select Topic Area
Show & Tell
Body
import ccxt
Instantiate an exchange object
exchange = ccxt.binance({
'apiKey': 'YOUR_API_KEY',
'secret': 'YOUR_API_SECRET',
})
Fetch the order book for a specific trading pair
order_book = exchange.fetch_order_book('BTC/USDT')
Execute a market order to buy 0.1 BTC
buy_order = exchange.create_market_buy_order('BTC/USDT', 0.1)
Get account balance
balance = exchange.fetch_balance()
...and so on
where the api key is at do I put My Numbers there also in order book does that mean example I order eth to be placed on avalanche and then sell on = fecth avalnche not sure of the code under standing
Beta Was this translation helpful? Give feedback.
All reactions