Challenges when interpreting trade records of a local cryptocurrency exchange #Foxbit

This article assumes that you understand the basics of trading with cryptocurrency exchanges. As the user does multiple trades, buying and selling, the exchange will store records. In general, these records are provided for download and are useful for accounting or tax purposes.

The format for these records is not standardized. Therefore, it’s up to the exchange to decide about the format and its structure. Throughout the following sections, you will follow the steps to understand how one particular exchange has organized its trade history using a CSV file.

Our goal is to understand the file structure, and then we…


In this project, we will use JavaScript to generate a PDF file based on another file written in Markdown. The motivation for me is this: I usually write a document, using simple text, that covers an executive summary for most of my meetings. I want to have a PDF of it. Anyway, that is my case — your situation might be something else.

What matters is that I was using Markdown already. Markdown is the well-known lightweight markup language designed to be easily converted to HTML. Developers know that, but if you don’t know, now you know. …


This article is based in a prior article entitled Using Binance API to get the user’s trades data. Here, however, our goal will be to fetch the data for the user’s margin account. It turns out that Binance uses different API endpoints depending on the kind of account (spot account, margin account for example).

Introduction to Binance API and the “myTrades” rest endpoint

Check Using Binance API to get the user’s trades data.

Accessing the user’s margin account “myTrades”

The following explanation is based in the following sample:

Let’s go through the code which is very simple and straightforward:

/* Notice that node-binance-api was replaced 
with a local version *
*/
//const Binance = require('node-binance-api');
const…

In this project, we are interested in the user’s records related to the user’s previous trades. Why would one need to fetch the user’s record of trades? To help with accounting or analysis, for example. Keep in mind that this is not a complete example of what one would want to do with the data — it’s the starting point.

Introduction to Binance API and the “myTrades” rest endpoint

Our goal is to get the user’s private data, the history of trades. Since this is private information, it will depend on an initial authentication step. …


This article solves one of the problems known as “/docker-entrypoint.sh: connect: Connection refused”

Many developers are struggling with problems when Mongo Express tries to connect with Mongo database using Docker-compose.

The general problem relates to the fact that Mongo Express needs to wait for Mongo database to be up. It turns out that Mongo Express developers provided a solution to this problem. Within Mongo Express Docker image comes a shell script (docker-entrypoint.sh) that tries to connect with Mongo database multiple times.

Context — Docker-compose configuration with two services: Mongo Express and Mongo database

Consider the following situation with two containers. One, mongo.service, which is to be the datbase. And another, the client, named mongo-express.service.

version: ‘3’

services:
mongo.service:
image: mongo
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD…


I will provide a walk through of a situation where a market trade operation, initiated by an user B (a buyer), resulted in a limit order from an user A (a seller) to be executed.

Moment 1 — User A is committed to sell

At moment 1, user A places a limit-sell order. It’s a commitment to sell an amount of bitcoin at a given price. This is an order that won’t be automatically executed. It’s a price P which user A asks for a volume V of bitcoins. The following structure lists the main attributes of this limit-sell order. I kept a few numbers listed to better illustrate:


With a container-based infrastructure (Docker in this case) you will likely have separated containers — one for the database, another for your application, and perhaps another being a database administration container.

Problem — knowing when to connect to the database

Your application needs to know when the database is ready so that you can connect. In a prototype phase, you may think about starting up the database service before your application service. This idea may work if you can manually start each service — if you are manually waiting for it.

But as you move to the docker-compose (or another orchestration system), you will need to find another way…


DISCLAIMER: THIS IS A DRAFT ESSAY INITIALLY PRODUCED BY MARCIO S GALLI. THIS WORK IS BASED WITHIN THE BLITZSCALING/05 TALK WITH JOHN LILLY (GREYLOCK) AND ALLEN BLUE (LINKED IN). THE GOAL OF THIS ARTICLE IS TO COLLABORATION. YOU CAN OPT IN TO HELP IN ANYWAY YOU CAN, BECOME A COAUTHOR OR SIMPLY ASK ME TO WORK ON IT BETTER. [Related https://medium.com/@taboca/challenging-the-status-quo-of-your-product-market-fit-eeff077318f0]

ON AUDIENCE: This is aimed at entrepreneurs and startup teams that are interested in the early stage of growth for their startups. This may also apply to startups working with customers (B2C) that already have customers and believe that…


Startup idea via a case—this note to inspire you to reflect about opportunities for yet another (social) network around collaboration

The motivation — a nice idea, hidden in a video, is gold

In this example, when you follow the link it is supposed to jump to 31min and 59s when Reid explains his “theory of small gifts”:

Jump to 31min and 59 secs — this “jumping is key element for the phenomenon of exploration here.

The problem: “gold” sections of talks/lectures/interviews needs context (enriching)

  • Sectionizing the moments are happening — say a collaboration network of people doing the sectioning, identifying moments. This is happening even at YouTube now. One can find specific examples of videos with indexes at the top (author made by hand.)
  • Yet lacks context — Of course it can lead to potential lack of context. To point out…

Draft: for your consideration if you are an author. This article can be about the future of social networks and may relate to UGC, to investigative journalism, to collaboration.

By now our online space is full of social networks that serves for different purposes. Facebook is for social identity interactions, like photo sharing. Twitter is for what are you doing now; Linkedin for the job shifting potential and it goes on.

I will naively suggest that most of these are for general interaction around the people that are not so close to you. Thus, they are mostly intended to manage acquaintances and not friends interaction. And that may be the very reason that they grew so much and became so influential to our lives. Exactly, they give motivation for…

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store