Pywaves.buy / sell not working

I write trade bot on python. And this code not work correctly.

waves_btc = pw.AssetPair(pw.WAVES, pw.BTC)
myAddress.buy(
assetPair=waves_btc,
amount=100000000,
price=73600,
maxLifetime=7*86400
)

why order not processing . console log receive pairs instead of order status.
and not show any errors.

run this code after setup
pw.setNode(“https://nodes.wavesnodes.com”, “mainnet”)
pw.setMatcher(“https://nodes.wavesnodes.com”)
myAddress=pw.Address(privateKey=“myPrivateKey”)

Try
pw.setMatcher("https://matcher.wavesplatform.com/matcher")

1 Like

Thanks. it works! -)))

1 Like