We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I created a new order with simple code:
import asyncio from binancechain import HTTPClient, Wallet, Transaction, BinanceChainException, Ordertype, Side, Timeinforce, WebSocket memo = 'xxxx xxxx xxx' pw = 'abcd' myChainclient = HTTPClient(testnet=False) myWallet = Wallet.wallet_from_mnemonic(words=memo, password=pw) Transaction = Transaction(wallet=myWallet, client=myChainclient)
async def ordproc(): new_order_txid = await Transaction.create_new_order(symbol='BNB_BUSD-DB1', side=Side.BUY, ordertype=Ordertype.LIMIT, price= 456.2, quantity= 0.002, timeInForce=Timeinforce.GTE) print(new_order_txid) event_loop = asyncio.new_event_loop() asyncio.set_event_loop(event_loop) event_loop.run_until_complete(ordproc())
######## result: I got a response below: CHAIN ID Binance-Chain-Tigris [{'code': 0, 'hash': 'E0F621C2472C367544598FAF7BDE6C9B8B2A7A2FD09EA1BB8FD251D08A8731CC', 'log': '', 'ok': True}]
But I can't found the hash on real Binance Chain main netword with https://explorer.binance.org/tx/E0F621C2472C367544598FAF7BDE6C9B8B2A7A2FD09EA1BB8FD251D08A8731CC I used mainnet, not testnet. I checked many times after running for a few hours.
Please show me my mistake.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I created a new order with simple code:
import asyncio
from binancechain import HTTPClient, Wallet, Transaction, BinanceChainException, Ordertype, Side, Timeinforce, WebSocket
memo = 'xxxx xxxx xxx'
pw = 'abcd'
myChainclient = HTTPClient(testnet=False)
myWallet = Wallet.wallet_from_mnemonic(words=memo, password=pw)
Transaction = Transaction(wallet=myWallet, client=myChainclient)
async def ordproc():
new_order_txid = await Transaction.create_new_order(symbol='BNB_BUSD-DB1', side=Side.BUY,
ordertype=Ordertype.LIMIT, price= 456.2, quantity= 0.002, timeInForce=Timeinforce.GTE)
print(new_order_txid)
event_loop = asyncio.new_event_loop()
asyncio.set_event_loop(event_loop)
event_loop.run_until_complete(ordproc())
########
result: I got a response below:
CHAIN ID Binance-Chain-Tigris
[{'code': 0, 'hash': 'E0F621C2472C367544598FAF7BDE6C9B8B2A7A2FD09EA1BB8FD251D08A8731CC', 'log': '', 'ok': True}]
But I can't found the hash on real Binance Chain main netword with https://explorer.binance.org/tx/E0F621C2472C367544598FAF7BDE6C9B8B2A7A2FD09EA1BB8FD251D08A8731CC
I used mainnet, not testnet.
I checked many times after running for a few hours.
Please show me my mistake.
The text was updated successfully, but these errors were encountered: