Comments (7)
Thank you for the quick answer.
Yes, I'm on Windows. (8.1) (+ Anaconda 3)
I realized this error :
"building 'ciso8601' extension
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/"
So now I'm installing Microsoft C++ Build Tools.
from ftx.
Problem solved.
Thanks.
from ftx.
I'm getting the "No module named 'ciso8601'" error.
I tried to install ciso8601 with pip install ciso8601 but then I get some new errors like "Failed to build ciso8601".
from ftx.
from ftx.
The same issue here (Python 3.8.10 on Ubuntu 20.04.2 LTS):
$ python3 -m pip install cis8601
ERROR: Could not find a version that satisfies the requirement cis8601 (from versions: none)
ERROR: No matching distribution found for cis8601
from ftx.
update: I've changed cis8601 to dateutil
which can work like a charm.
from ftx.
As immartian said, you only need to change the api.py file like this :
import time
import urllib.parse
from typing import Optional, Dict, Any, List
from requests import Request, Session, Response
import hmac
# from ciso8601 import parse_datetime # FROM THIS
from dateutil.parser import parse # TO THIS
class FtxClient:
def __init__(self, base_url=None, api_key=None, api_secret=None, subaccount_name=None) -> None:
self._session = Session()
self._base_url = 'https://ftx.com/api/'
self._api_key = api_key
······
from ftx.
Related Issues (11)
- Bodchange / 24hour change gives wrong data
- Wrong parameters in `FtxClient.place_trigger_order`
- AttributeError: 'NoneType' object has no attribute 'encode'
- `place_order` missing `rejectOnPriceBand` payload
- Please archive repo since FTX has filled for bankruptcy and will be liquidated.
- Doesnt get all the trades.
- Authentication exception HOT 2
- Get lending info + submit lending offers HOT 3
- Take Profit and Trailing Stop not working. HOT 26
- Can't cancel trigger orders with the cancel order function HOT 3
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 ftx.