Giter Site home page Giter Site logo

Comments (7)

mehmet-demir avatar mehmet-demir commented on May 8, 2024 1

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.

mehmet-demir avatar mehmet-demir commented on May 8, 2024 1

Problem solved.
Thanks.

from ftx.

mehmet-demir avatar mehmet-demir commented on May 8, 2024

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.

cypg09 avatar cypg09 commented on May 8, 2024

from ftx.

immartian avatar immartian commented on May 8, 2024

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.

immartian avatar immartian commented on May 8, 2024

update: I've changed cis8601 to dateutil which can work like a charm.

from ftx.

TenmaChinen avatar TenmaChinen commented on May 8, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.