Coder Social home page Coder Social logo

coinex's Introduction

NOTICE

The included collection of scripts is not for coinex.com, but for the (now out of business) site coinex.pw.

There is no association between myself and any "coinex" site.

THIS CODE IS PROBABLY NOT WHAT YOU ARE LOOKING FOR.

I am keeping it here for archival purposes.

Coinex

A collection of scripts for the coinex cryptocurrency trading platform.

Setup

  • Move the coinex.conf.sample file to coinex.conf
  • Complete the config file with your credentials

Testing

Run the tests.py file to perform unit tests.

Scripts

  • list_balances.py - list which coins you own
  • market_cap.py - show your market cap (in BTC and USD via Bitstamp price)
  • arbitrage.py - look for and perform arbitrage trades NOTE: it is unlikely that you will find one

Reusables

  • coinex_api.py can be used in other projects
  • models.py provides a more friendly set of python objects for interacting with the API

coinex's People

Contributors

robmcl4 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

coinex's Issues

Arbitrage - error on execute chain

Python 3.3.1, clean checkout from github.

If I try to execute an arbitrage chain, I get an error when it tries to return the results of the first order (the first order does successfully place).

Traceback (most recent call last):
File "arbitrage.py", line 196, in perform_chain_operation
ordr.submit()
File "/home/tgreiser/apps/coin_utils/Coinex/models.py", line 381, in submit
rate=self.rate
File "/home/tgreiser/apps/coin_utils/Coinex/coinex_api.py", line 177, in submit_order
return _make_request('orders', data=qry, private=True)['orders'][0]
KeyError: 'orders'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "arbitrage.py", line 378, in
main()
File "arbitrage.py", line 374, in main
show_profitable()
File "arbitrage.py", line 365, in show_profitable
offer_execute_chain(chain)
File "arbitrage.py", line 278, in offer_execute_chain
chain.execute()
File "arbitrage.py", line 227, in execute
self.ex1
File "arbitrage.py", line 198, in perform_chain_operation
print(e.read())
AttributeError: 'KeyError' object has no attribute 'read'

wrong comparison in arbitrage.py?

Line 281 in arbitrage.py doesn't look right to me:
if self.get_min_transfer() >= self.get_min_transfer():

Shouldn't it be:
if self.get_max_transfer() >= self.get_min_transfer():

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.