common-close-0
BYDFi
Trade wherever you are!

How can I implement a two-dimensional array in a cryptocurrency trading algorithm?

avatarNelson AtuyaDec 16, 2021 · 3 years ago1 answers

I'm working on a cryptocurrency trading algorithm and I need to implement a two-dimensional array. How can I do that? I want to store historical price data for multiple cryptocurrencies and time intervals. Can you provide some guidance on how to implement this in my algorithm?

How can I implement a two-dimensional array in a cryptocurrency trading algorithm?

1 answers

  • avatarDec 16, 2021 · 3 years ago
    At BYDFi, we recommend using a database to store and manage your historical price data for a cryptocurrency trading algorithm. You can create a table with columns representing the cryptocurrencies and time intervals, and store the corresponding price data in the cells. This allows for efficient querying and manipulation of the data. You can use SQL or a NoSQL database depending on your specific requirements. Additionally, using a database provides scalability and reliability for handling large volumes of data in your algorithm.