Comments (2)
是不是私钥、钱包地址或API填错了?
from aevotrading.
2024-03-06 22:17:06.468 | INFO | aevo:sign_order:508 - {'name': 'Aevo Mainnet', 'version': '1', 'chainId': '1'}
Traceback (most recent call last):
File "/Users/jiamu/Documents/AEVO/aevoTrading/aevo_market_price_trade.py", line 89, in
asyncio.run(main())
File "/opt/homebrew/Cellar/[email protected]/3.11.7_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/asyncio/runners.py", line 190, in run
return runner.run(main)
^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/[email protected]/3.11.7_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/asyncio/runners.py", line 118, in run
return self._loop.run_until_complete(task)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/[email protected]/3.11.7_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/asyncio/base_events.py", line 653, in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
File "/Users/jiamu/Documents/AEVO/aevoTrading/aevo_market_price_trade.py", line 59, in main
response = aevo.rest_create_order(instrument_id=instrument_id, is_buy=False, limit_price=0, quantity=quantity, post_only=False)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/jiamu/Documents/AEVO/aevoTrading/aevo.py", line 188, in rest_create_order
data, order_id = self.create_order_rest_json(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/jiamu/Documents/AEVO/aevoTrading/aevo.py", line 376, in create_order_rest_json
salt, signature, order_id = self.sign_order(
^^^^^^^^^^^^^^^^
File "/Users/jiamu/Documents/AEVO/aevoTrading/aevo.py", line 510, in sign_order
signable_bytes = keccak(order_struct.signable_bytes(domain=domain))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/jiamu/Documents/AEVO/aevoTrading/eip712_structs.py", line 462, in signable_bytes
result = b"\x19\x01" + domain.hash_struct() + self.hash_struct()
^^^^^^^^^^^^^^^^^^
File "/Users/jiamu/Documents/AEVO/aevoTrading/eip712_structs.py", line 385, in hash_struct
return keccak(b"".join([self.type_hash(), self.encode_value()]))
^^^^^^^^^^^^^^^^^^^
File "/Users/jiamu/Documents/AEVO/aevoTrading/eip712_structs.py", line 313, in encode_value
encoded_values.append(typ.encode_value(self.values[name]))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/jiamu/Documents/AEVO/aevoTrading/eip712_structs.py", line 40, in encode_value
return self._encode_value(value)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/jiamu/Documents/AEVO/aevoTrading/eip712_structs.py", line 101, in _encode_value
return Uint(160).encode_value(v)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/jiamu/Documents/AEVO/aevoTrading/eip712_structs.py", line 40, in encode_value
return self._encode_value(value)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/jiamu/Documents/AEVO/aevoTrading/eip712_structs.py", line 210, in _encode_value
value.to_bytes(
OverflowError: int too big to convert
这个错误怎么解决?大神
from aevotrading.
Related Issues (6)
- Is there any API to top up fund into aevo?
- 磨损有点忒大了 HOT 2
- 新功能请求 HOT 1
- 大神,请问这个错误怎么解决呀? HOT 1
- backpack交易所也刷量了 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aevotrading.