how to program a cryptocurrency exchange