sann05 / python-currencycom Goto Github PK
View Code? Open in Web Editor NEWCurrency.com Exchange API python implementation for automated trading
License: MIT License
Currency.com Exchange API python implementation for automated trading
License: MIT License
Hi.
If I try to get my trade data or place order I get the scope error. Is this part works?
{'code': -1128, 'msg': 'Position not found'}
How to get position id if it changed with 'orderId'
neworder=client.new_order('BTC/USD_LEVERAGE','BUY','MARKET',250.0,'1109999999077777',20);
Traceback (most recent call last):
File "", line 1, in
File "/home/a-nai/.local/lib/python3.8/site-packages/currencycom/client.py", line 642, in new_order
expire_timestamp_epoch = self._to_epoch_miliseconds(expire_timestamp)
File "/home/a-nai/.local/lib/python3.8/site-packages/currencycom/client.py", line 113, in _to_epoch_miliseconds
return int(dttm.timestamp() * 1000)
AttributeError: 'int' object has no attribute 'timestamp'
In leverage trade currency.com request accountId - but i have only userId
'userId': -9679998298 something like this
at account_info
client.get_account_info()
All reading commands work great but when trying to open new trades I get an error. My API key has the permission to trade.
After
client.new_order("DOGE/USD", OrderSide.SELL, OrderType.MARKET, 19, None, 1 )
I am getting this response:
{'code': -1025, 'msg': 'Invalid API-key, IP, or permissions for action'}
neworder.append(client.new_order('BTC/USD_LEVERAGE',OrderSide.SELL,OrderType.MARKET,(client.get_account_info()["balances"][0]['free']0.9510)/bi()[0],client.get_account_info()["balances"][0]['accountId'],None,False,None,None,10,None,NewOrderResponseType.FULL,None));
{'code': -1021, 'msg': "Your time (1641393721429) doesn't match server time (1641393733341)"}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.