Maxximiliann
Maxximiliann
``` iex(2)> recompile Compiling 1 file (.ex) ** (MatchError) no match of right hand side value: {:error, {:already_loaded, :my_app}} (mix_unused 0.2.1) lib/mix/tasks/compile.unused.ex:168: Mix.Tasks.Compile.Unused.all_functions/1 (mix_unused 0.2.1) lib/mix/tasks/compile.unused.ex:132: Mix.Tasks.Compile.Unused.after_compiler/4 (elixir 1.13.4) lib/enum.ex:2396:...
``` import pywaves as pw def get_amount_asset(amount_asset_id): if amount_asset_id == 'WAVES': return pw.WAVES return pw.Asset(amount_asset_id) def get_price_asset(price_asset_id): if price_asset_id == 'WAVES': return pw.WAVES return pw.Asset(price_asset_id) def configure_trading_account(): matcher_url = 'https://matcher.waves.exchange'...
``` def configure_trading_account(): matcher_url = 'https://matcher.waves.exchange' pw.setMatcher(matcher_url) wallet_key = os.environ.get('WALLET_KEY') trading_account = pw.Address(privateKey=wallet_key) return trading_account def execute_trade(side, order_symbol, amount, price): fee_asset_id = 'Atqv59EYzjFGuitKVnMRk6H8FukjoV3ktPorbEys25on' trading_account = configure_trading_account() if side == 'buy':...
https://github.com/PyWaves/PyWaves/blob/f52f3bd4bcf04505e04a8b2c118ad8971d90912d/address.py#L867-L876 Hi, New to PyWaves and have a brief question on how to format prices and amounts. From the above referenced code, prices appear to be automatically standardized for us,...
``` $ mix deps.compile ===> Analyzing applications... ===> Compiling erlport ==> export Compiling 4 files (.ex) warning: Atom.to_char_list/1 is deprecated. Use Atom.to_charlist/1 instead lib/export/helpers.ex:9: Export.Helpers.convert_options/1 warning: String.to_char_list/1 is deprecated. Use...