Skip to main content

Questions tagged [cryptocurrency]

Cryptocurrency is a digital asset designed to work as a medium of exchange that uses cryptography to secure its transactions, to control the creation of additional units, and to verify the transfer of assets.

Filter by
Sorted by
Tagged with
1 vote
3 answers

Sign a message with a Bitcoin private key

I am writing code in C, and I need to do various operations with Bitcoin, from generating key pairs, to sign messages to post transactions. I found libraries for C++, but nothing in C that does all ...
capodieci's user avatar
3 votes
1 answer

Bitcoin Hash (Merkle) Tree implementation in Java

I'm learning about how full nodes can send a Merkle root + a list of hashes, so that a light client can verify a transaction. I couldn't find any good resources on how to implement it. I just knew ...
user644361's user avatar
2 votes
2 answers

Print Bitcoin price by getting JSON data using CoinDesk API

In this code in Python, I used an API called CoinDesk to get the Bitcoin price as JSON. I'm trying to follow the best practices in coding, so, I've used logging and I'm using a code formatter in my ...
Meqdad Dev's user avatar
7 votes
2 answers

Java command-line API client to fetch Bitcoin exchange rates

I am building a simple Java command-line application. And I want to know the best practice and make my code clean. Can anybody suggest to me how many different classes I can make and what more method ...
forhadmethun's user avatar
2 votes
0 answers

Bash bitcoin blockchain explorer

I wrote a little bash script that displays the transaction info in json: ...
reardenlife's user avatar
3 votes
1 answer

Convert bitcoin value based on exchange rate from JSON API

I’m learning F# and trying to find a more ‘functional’ way to code a simple program that retrieves the price of BTC and calculates the EUR value of an amount of Bitcoin. ...
MmM's user avatar
  • 409
4 votes
2 answers

Parsing Bitcoin binary data file with Python

The script parses Bitcoin database (blkXXXXX.dat) files directly from raw binary to txt human readable view. And I think about how to encrease the speed of processing. Can anyone suggest how to ...
Denis Leonov's user avatar
5 votes
2 answers

Implementation of BIP-39 using C

I'm asking for anyone to review my code and provide comments here. The code has a header file but I'll show the c module here. I haven't written any C code since probably before the year 2000. I'm a ...
David Whitehurst's user avatar
9 votes
1 answer

Simple cryptocurrency portfolio rebalancer

EDIT: the code has been changed significantly since the OP based on the first posted answer and some refactoring. Feedback on the general design of the app itself is still more than welcome. The ...
KBriggs's user avatar
  • 193
4 votes
1 answer

Python cryptocurrency arbitrage bot

I have created a simple tool that takes in a dictionary of cryptocurrencies and finds the ones with the highest % differences between exchanges. I would be grateful if someone could help me optimize ...
user7903682's user avatar
8 votes
2 answers

Encrypted safebox

I am developing JSafebox, a portable safebox project written in Java. The goal is to provide a secured environment where the user can browse encrypted files without leaking data on the drive. The ...
ortis's user avatar
  • 165
4 votes
2 answers
3k views cryptocurrency bot

This is a Python bot I am working on. It shows the prices, 24-hour volume, 1h percent change, 24h percent change, 7d percent change and much more of the cryptos. I'm still working on adding ...
Colea's user avatar
  • 349
1 vote
3 answers

Calculate cryptocurrency gains and losses using the Coinbase API

This class calculates the gains and losses (in USD) from the four leading cryptocurrencies using the Coinbase API. (The full repo can be found here) In addition to general feedback there are some ...
kingsfoil's user avatar
  • 179
10 votes
1 answer

Cryptocurrency notifier - let's get rich (or at least let's try)

We all know that in the last period cryptocurrencies have ushered the era of the next financial revolution. Having that in mind, I thought it'd be useful to know (using Python 3.6) when a certain ...
Cajuu''s user avatar
  • 331
17 votes
4 answers

Bitcoin wallet address and private key generator

I wanted to learn how to create a Bitcoin wallet in code. I used as reference this guide which has code examples in JavaScript. I wrote my implementation in Python. Here is the resulting code: ...
Diego Pino's user avatar
3 votes
0 answers

Cryptocurrency forecasting app

I wrote a cryptocurrency (or any other) market forecasting application in Python 3.5. The code is getting bigger and more complex so I would love if some experts would take a look at it and check and ...
user8244558's user avatar
7 votes
1 answer

Getting prices of crypto coins

I have been working on this Raspberry Pi project for a while. It uses the Poloniex API to get prices of crypto coins and it shows the prices on multiple OLED displays. The displays use different i2c ...
BoKKeR's user avatar
  • 135
3 votes
1 answer

PyCryptoScraper to scrape currency rates

I created a PyCryptoScraper script to scrape crypto-currencies from Coingecko. Now I want to know if you could give me some hints or improvements for my script, which works fine. The whole code also ...
Patrick85's user avatar
  • 491
2 votes
1 answer

Retrieving a message from a cryptocurrency daemon

The objective of this piece of code is to get a message from a cryptocurrency daemon through RPC and extract the transactions object to pass it to the view. Is there a simpler / less ugly way of doing ...
Papa Lazzarou's user avatar
11 votes
1 answer

Bitex - Cryptocurrency Exchange API Framework for Python - Round 2

This is a follow up to my previous review request. BitEx is a Python module I've been working on for a little over 9 months now, as a side project. It was published 6 months ago on GitHub, and as I ...
deepbrook's user avatar
  • 227
8 votes
1 answer

Bitex - Cryptocurrency Exchange API Framework for Python

BitEx is a Python module I've been working on for a little over 9 months now, as a side project. It was published 6 months ago on GitHub, and as I edge closer to my 1.0 release, I wanted to take the ...
deepbrook's user avatar
  • 227
2 votes
0 answers

Bitcoin, detecting deposits to the node.js server

I'm trying to detect deposits that a user will make. I added explainatory comments inline. Can you spot any flaws in it? ...
Arthur's user avatar
  • 21
8 votes
2 answers

Security of API Keygen for a cryptocurrency trading platform

Here is an API key gen script for a cryptocurrency trading platform I am building. First it checks to see if a key exists in the db for the user ID. If it does exist, it displays the key. If it doesn'...
r3wt's user avatar
  • 472