z-classic / z-nomp

z-nomp is mining pool software for Zcash and Zclassic so you can create internet money in your home!
MIT License
288 stars 441 forks source link

Coinmarketcap #243

Open bcmonster opened 6 years ago

bcmonster commented 6 years ago

Im trying to get coinmarketcap to load into the api. Sorry for the issue. Anyone point me in the right direction?

TheComputerGenie commented 6 years ago

Just like the exchanges have (Bittrex examples to copy and edit for CMC) You'd need to add a CMC API file like : https://github.com/z-classic/z-nomp/blob/e1eba6d88ff3f0ed8692714ba8e7222ef01b3071/libs/apiBittrex.js#L1-L222 and add to the profitSwitch.js similar to these: https://github.com/z-classic/z-nomp/blob/e1eba6d88ff3f0ed8692714ba8e7222ef01b3071/libs/profitSwitch.js#L10 https://github.com/z-classic/z-nomp/blob/e1eba6d88ff3f0ed8692714ba8e7222ef01b3071/libs/profitSwitch.js#L81-L83 https://github.com/z-classic/z-nomp/blob/e1eba6d88ff3f0ed8692714ba8e7222ef01b3071/libs/profitSwitch.js#L402-L511 https://github.com/z-classic/z-nomp/blob/e1eba6d88ff3f0ed8692714ba8e7222ef01b3071/libs/profitSwitch.js#L646-L647

bcmonster commented 6 years ago

Thanks for you help