GithubHelp home page GithubHelp logo

pyxi's People

Contributors

gpwclark avatar ericscheier avatar sanyam199 avatar sanyambansal76 avatar

Stargazers

codehnt avatar Samuel Holt avatar Igor Kroitor avatar

Watchers

James Cloos avatar  avatar

pyxi's Issues

requestAMTradeHistory is not working

I am some error while using tradehistory method. I am adding a snippet for the quick test.

import pyxi
import json

exchange_dict = {
    'exchange_credentials': {
        'key': "",
        'passphrase': "",
        'exchange': "GDAX",
        'secret': ""
    },
}
print (pyxi.requestAmTradeHistroy(exchange_dict))
data = json.loads(pyxi.requestAmTradeHistroy(exchange_dict))
if data.get('userTrades'):
    all_trades = data.get('userTrades')
    print (all_trades)

requestFillOrKill return {'fillorkill': "{ERROR: IllegalArgumentException The value of 'id' path parameter was not specified.}"}

I am trying to use the requestFillOrKill method it return {'fillorkill': "{ERROR: IllegalArgumentException The value of 'id' path parameter was not specified.}"}.

I am attaching the python code to reproduce this issue.

import pyxi
import uuid

orders = [
    {
        "altfund_id": uuid.uuid4().hex,
        "order": {
            "altfund_id": uuid.uuid4().hex,
            'exchange_credentials': {
                "exchange": 'gdax',
                'key': 'jdfbjfbvejfvbev',
                'secret': 'dfghgfdsadfgh',
                'passphrase': "defghfdsadfg"
            },
            'order_type': 'BID',
            'order_specs': {
                'base_currency': 'BTC',
                'quote_currency': 'ETH',
                'volume': '0.000001',
                'price': '0.004332',
                'test': True,
            }
        }

    }
]

orders_response = pyxi.requestFillOrKill(orders)
print (orders_response)

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.