Find Jobs
Hire Freelancers

Python code to trade cryptocurrencies using APIs in bitfinex and bitmex

$30-250 USD

In Progress
Posted over 5 years ago

$30-250 USD

Paid on delivery
Good day I am currently running a small program (with the paradigm: structured programming) that I wrote in Python version 3.6 that interacts with [login to view URL] through the API and key. The project is to make the code in Python to do the same in bitfinex and bitmex. I do not handle object-oriented programming well, so I ask for the code in structured programming. The program does the following four things: 1) Get trading balance import requests import json import time import math import winsound def Balance(): session = [login to view URL]() [login to view URL] = ("API", "KEY") balances = [login to view URL]('[login to view URL]').json() for balance in balances: if balance['currency'] == 'USD': global usdt_balance usdt_balance = float(balance['available']) print('balance USD :',ustd_balance) Balance() 1) Get the last Price import requests import json import time import math import winsound def preciocompraventaeth (): r1 = [login to view URL]('[login to view URL]').json() [login to view URL](r1) global ultimocambioeth ultimocambioeth=r1['last'] ultimocambioeth=float(ultimocambioeth) print ("Ultimo:",ultimocambioeth) preciocompraventaeth () 2) Make a purchase or sale def venta (): preciocompraventaeth () session = [login to view URL]() [login to view URL] = ("API", "KEY") orderData = {'symbol':'eosusd', 'side': 'sell', 'quantity': 3, 'price': 5 } r = [login to view URL]('[login to view URL]', data = orderData).json() [login to view URL](r) #venta () 3) Calculates the SMA (simple moving average) of the closing prices of the last candles for example last 100 candles in periods of 5 minutes def smaeth(): def fix_floats(data): if isinstance(data,list): iterator = enumerate(data) elif isinstance(data,dict): iterator = [login to view URL]() else: raise TypeError("can only traverse list or dict") for i,value in iterator: if isinstance(value,(list,dict)): fix_floats(value) elif isinstance(value,str): try: data[i] = float(value) except ValueError: pass r1 = [login to view URL]('[login to view URL]').json() for item in r1: [login to view URL]('timestamp', None) global candle1 candle1 = r1 fix_floats(candle1) final = {} for d in candle1: for k in [login to view URL](): final[k] = [login to view URL](k,0) + d[k] global tuy tuy=final['close'] tuy=float(tuy) global smaeth100 smaeth100=tuy / 100 print ("SMA 100 :", sma100) smaeth() I will provide you with my APIs to run the code
Project ID: 18302588

About the project

7 proposals
Remote project
Active 5 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
7 freelancers are bidding on average $417 USD for this job
User Avatar
Hi Nice to meet you. I'm python expert and my last project on freelancer.com is also python scraping task. My past works: Youtube comment scrapping Real estate property list to csv Job-site content to csv And scrap posts from facebook, twitter, instagram using scrapy. I checked your trade code. I written arbitrage trading bot between bittrex and bitfinex, kraken. So I can help you to run code. I can help you related with python. Let me know if you are interested in me. Regards.
$150 USD in 3 days
4.9 (51 reviews)
6.1
6.1
User Avatar
Hello I ready your full description and I am interested in your project. As you can see my profile, I have top skills of automated trading software for cryptocurrency, forex as well as stock. I have experiences of MetaTrader(MT4/MT5, MQL4/MQL5), TradingView(Pine Script) and QuantConnect(based on Python/C#) platforms. And familiar with exchange markets such as BitMex, bittrex, bitfinex and so one. Also have experience of binary option on iqoption. I have knowledge many strategies and indicators such as RSI, MACD and EMA crossing indicators, BreakOut and Hidden Divergence indicators etc. Project can be integrated into social media into e-mail and telegram for SIGNAL communication. And I am ready for professional back-testing and live trading. I can create the automated trading system with PYTHON, PHP or C#. Will be provided the professional front-end and strong back-end in case of web based system. I can discuss about more details of your project. Thanks.
$155 USD in 3 days
5.0 (26 reviews)
6.1
6.1
User Avatar
I am expert who understands the value of time. I pride myself in my attention to detail. I am very hard working and aim to deliver in less time than quoted. I want to make you, my employer happy without changing my bid or playing games. If you are looking for a true Freelancer, I am the Right person for you. I am available almost 24-7 and am very responsive. I feel proud that I am a trusted Freelancer who pleases almost every single client. You can rest assure, your work will be delivered well in advance of others, with passion and accuracy. I guarantee you instant communication & responses when you need me. Why choose me? I think every client is the reason for my success. I only take projects which I am sure I can do quickly and at my FIRST BID. I promise to deliver 100% Satisfaction.I have more than 5 year of experience in Python, Software Architecture, Website Testing. Please ping me for more discussion.
$250 USD in 4 days
4.9 (41 reviews)
6.0
6.0
User Avatar
Hello! I am a python developer. I looked at your project and it seems interesting. I have all necessary skills required for this project. Ping me to discuss in detail.
$140 USD in 2 days
4.5 (26 reviews)
5.1
5.1
User Avatar
Hi... How are you?. I saw your description carefully and i 'm very interesting your project. And i can start to work just now and will be my best to finish asap with good quality. But to do your project perfectly, i will need to know more clearly so i have few questions with your project. If u have little time to discuss wiht me, please ping to me. And if you would like to see my skills please go this link: https://www.freelancer.com/u/crocodile305 If you would like to give me your project , i will be very happy to work with you. Thanks time:12/6/2018 4:25:5----19
$112 USD in 3 days
5.0 (3 reviews)
3.9
3.9
User Avatar
Hello, I have a lot of knowledge and experience for this job. If You hire me this project will be done efficiently and fast. Feel free to contact me if You have any questions. Kind regards, Nino Rasic
$111 USD in 3 days
4.8 (5 reviews)
2.3
2.3

About the client

Flag of COLOMBIA
Cartagena, Colombia
5.0
1
Payment method verified
Member since Dec 3, 2018

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.