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
17
votes
4answers
18k views

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: ...
12
votes
1answer
255 views

Bitcoin address validator in C

Here is a Bitcoin address validator I am looking to have reviewed in C. Normally I would have the enum and function prototypes declared in a header file, but I ...
11
votes
1answer
1k views

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 ...
10
votes
1answer
254 views

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 ...
10
votes
1answer
332 views

Produce bitcoin private key from 31 playing cards

I've written some Python code to generate a random hexadecimal string using 31 playing cards drawn without replacement (so no card appears more than once). This is sufficient to provide more than 160 ...
9
votes
1answer
1k views

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 ...
8
votes
2answers
1k views

Get Bitcoin Price and Advice

I wrote this in the last hour because I was bored. I was hoping I could get some feedback on this. It is a function that returns the price of a bitcoin and whether you should buy or sell it. I am ...
8
votes
2answers
184 views

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 ...
8
votes
1answer
665 views

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 ...
7
votes
2answers
5k views

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'...
7
votes
2answers
97 views

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 ...
7
votes
1answer
341 views

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 ...
6
votes
0answers
3k views

Real-time bitcoin data feed and storage using websocket framework

I'm trying to create data feed script for real time bitcoin data for OkCoin exchange using their websocket API (documentation) and a database manager for storing. There are two channels I am ...
5
votes
2answers
160 views

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 ...
5
votes
1answer
353 views

Multi-threaded bitcoin vanity address generator written in Java

The application leverages the bitcoinj library to generate a vanity bitcoin address. A vanity address is simply a bitcoin address that contains a personalized string. I would like some critical ...
5
votes
0answers
250 views

Perl crypto-scraper

I created a crypto-scraper script to scrape crypto currencies from Coingecko. I have used the library LWP::UserAgent and now I want to know if you could give me ...
4
votes
3answers
663 views

Bitcoin trading system

Recently I did an exercise for a interview pre-screening, but was not selected. They did not give much detailed feedback apart from "the code was not up to what they wanted". It would be really ...
4
votes
2answers
69 views

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 ...
4
votes
2answers
580 views

Generate a Bitcoin Address and the Wif from a phrase

Is there a way to speed up my Python code? ...
4
votes
1answer
323 views

Listens for custom messages on the production Bitcoin blockchain

The application listens for OP_RETURN messages on the Bitcoin blockchain and prints them to standard output. OP_RETURN is a custom transaction locking script that can store data, but nothing beyond ...
4
votes
1answer
3k views

Python mnemonic ↔ hex conversion (Bitcoin BIP39) - follow-up

Original question: Python PBKDF2 using core modules I'm looking for commentary on the following code, which converts from a hex seed to mnemonic (12 word phrase), and vice versa. It's for Bitcoin (...
4
votes
1answer
296 views

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 ...
3
votes
2answers
1k views

discord.py cryptocurrency bot

This is a Python discord.py 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 ...
3
votes
1answer
238 views

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. ...
3
votes
1answer
848 views

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 ...
3
votes
0answers
101 views

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 ...
2
votes
2answers
359 views

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 ...
2
votes
1answer
113 views

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 ...
2
votes
0answers
85 views

Bash bitcoin blockchain explorer

I wrote a little bash script that displays the transaction info in json: ...
2
votes
0answers
90 views

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? ...
1
vote
3answers
107 views

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 ...
1
vote
0answers
89 views

Cryptocurrency bot for retrieving coin information

I am running a cryptocurrency bot that needs 2 things: Get a list of all the coins every 10 minutes or a similar frequency Get a list of all the prices for each coin The problem lies in 2 where I ...
1
vote
0answers
52 views

Node.js Cryptocoin wallettracker

At first I thought this was going to be easy, but the asynchronous Node.js really made things difficult for me. Currently, my tracker only features one coin and the address is hard-coded. I plan to ...
0
votes
0answers
20 views

XML schema for a basic blockchain

I recently read this article which runs through a very basic implementation of a blockchain for cryptocurrencies using Kotlin. For no real reason I decided to try and write an XML schema which defines ...
0
votes
0answers
83 views

Discord Cryptocurrency Bot - follow-up

I updated my discord bot, the code is here: My bot can get the following: The price The rank The 24 hr volume 1 hr percent change 24 hr percent change 7d percent change Symbol Total supply (For some)...