Giter Site home page Giter Site logo

imwatsi / crypto-market-samples Goto Github PK

View Code? Open in Web Editor NEW
23.0 1.0 15.0 43 KB

A collection of sample Python scripts that one can incorporate or build upon when developing customized systems for trading cryptocurrency

License: MIT License

Python 100.00%
cryptocurrency trading-bot python3 binance-api bitmex-api bitfinex-api

crypto-market-samples's Introduction

crypto-market-samples

A collection of sample Python scripts that one can incorporate or build upon when developing customized systems for trading cryptocurrency


Current Sample Scripts

Technical Analysis (bfxhfindicators)


Binance


Bitfinex


BitMEX

crypto-market-samples's People

Contributors

imwatsi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

crypto-market-samples's Issues

Running alongside bitmex-market-maker

I'm running the Bitmex Market Maker script. Opening bids and asks, repositioning accordingly.

There is no SL or TP with that script.

I have enabled your script to run on SL only and it is watching for the first MM order. With a 15% SL.

How does your script deal with orders after the first one - and assuming the position has not been closed but added to? In Bitmex MM new orders are added to the first position, as MM works through bid and ask orders.

From my limited testing of your script (without MM running): after my second order filled, Bitmex SL total contracts remained at +1 contract instead of +2

I'm assuming a function would be needed to recalculate order 1 + order 2 / 2 = place new SL at 15% of the new total?

TypeError: must be real number, not list for bfxhfindicators/ema.py

Getting the following error for binance_pairs_ema

File "/.../calc_ema_for_20coins.py", line 70, in <module> iEMA = EMA([period]) File "/usr/local/lib/python3.9/site-packages/bfxhfindicators/ema.py", line 8, in __init__ 'name': 'EMA(%f)' % (period), TypeError: must be real number, not list

All paths are correct, I've just shortened the path for calc_ema_for_20coins.py

I've used the code as is, without any alterations.

Can't fix "Signature not valid" error

So I'm trying to figure out why is this script working for everyone but me...
Any ideas what might be wrong? Basically i just put my api key/secret, tried on prod and testned and still the same issue...

Positions are now loaded...
Orders are now loaded...
Actively scanning for open positions now.
401
b'{"error":{"message":"Signature not valid.","name":"HTTPError"}}'

SL automatic with price

Hello ! Once again thanks for this script that I'm trying to adapt to my situation.

Do you know if we can add a condition to add a new SL if the price moves 0.5% or higher than add a new SL ?
Thanks

Bitmex API causes getting banned

Hey,
I was trying out the auto sl and tp script and it resulted in having my bitmex account banned. When I am trying to visit bitmex.com it shows me "forbidden 403" error.
Any ideas what might be causing this and how to fix it?
All I did was download the scripts and copy/paste my api keys.

How to work with multiple accounts?

Great script. I'm working through the sample code, but what if i have more than one account that i want to run this on? For example, i have one for longs and one that i countertrade on with shorts and one that i use based on signals. I don't really want to run 3 instances of the same script.

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.