First step for automate trading : FTX and Bitkub

TLDR; Sample Javascript code to connect to FTX and Bitkub (Cryptocurrency market exchange)

Rawin Ngamloet
1 min readDec 16, 2021

When you are really into automate trading, one thing to finish first is trying the API for every single exchange you can find. For me, it will start with FTX and Bitkub (One of largest exchange in Thailand)

Below is my example code:

FTX

Nothing particularly hard here the API document is clear. When it has some error it is not so hard to fix.

Bitkub

No example for javascript but everything is not that hard. Anyway, I think getting timestamp every time from the server is not generally good design when you have to prepare for extra-load. But, may be they has some good point about security concern.

Both of them doesn’t have javascript example in their repository (FTX: ftexchange/ftx: FTX Sample Code (github.com), Bitkub: https://github.com/bitkub/bitkub-official-api-docs/), So this article might benefits who walk down this road.

Thank you for reading.

--

--

Rawin Ngamloet

My software development career got a head start when my dad bought back the Atari machine 30 years ago