Skip to content

Instantly share code, notes, and snippets.

@jeremyikwuje
Last active November 20, 2023 05:44
Show Gist options
  • Save jeremyikwuje/445d25bf3d0d0bb34f723327738b5151 to your computer and use it in GitHub Desktop.
Save jeremyikwuje/445d25bf3d0d0bb34f723327738b5151 to your computer and use it in GitHub Desktop.
The data structure represents daily exchange rates for multiple currency exchange platforms, organized by date, with each platform having associated buying and selling rates. Powered by Monierate.com

The data represents daily exchange rates for various currency exchange platforms. Each date has associated exchange rates for different platforms, including "chippercash," "coinprofile," "flutterwave," and potentially more. For each platform, both buying and selling rates are provided.

The structure follows a nested format, where each date is a key in the outermost object, and its corresponding value is an object containing exchange rates for each platform. Each platform has an associated object containing "buy" and "sell" rates.

For example, looking at the data for "2023-11-20":

  • chippercash has a buying rate of 1166 and a selling rate of 1126.
  • coinprofile has a buying rate of 1156.3 and a selling rate of 1136.3.
  • flutterwave has a buying rate of 1148.51 and a selling rate of 1103.92.

This pattern continues for each date, providing a historical record of exchange rates for different platforms over time. The data structure allows easy retrieval of exchange rates for a specific date and platform.

{
"2023-11-20": {
"chippercash": {
"buy": 1166,
"sell": 1126
},
"coinprofile": {
"buy": 1156.3,
"sell": 1136.3
},
"flutterwave": {
"buy": 1148.51,
"sell": 1103.92
}
...
},
"2023-11-19": {
"chippercash": {
"buy": 1167,
"sell": 1130
},
"coinprofile": {
"buy": 1153.8,
"sell": 1133.8
},
"flutterwave": {
"buy": 1148.51,
"sell": 1103.92
}
},
"2023-11-18": {
"chippercash": {
"buy": 1167,
"sell": 1130
},
"coinprofile": {
"buy": 1151,
"sell": 1131
},
"flutterwave": {
"buy": 1148.51,
"sell": 1103.92
}
},
...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment