Skip to content

Instantly share code, notes, and snippets.

View Radishoux's full-sized avatar
🔫
taking down your bugs one by one

Rudy Quinternet Radishoux

🔫
taking down your bugs one by one
View GitHub Profile
@Radishoux
Radishoux / scrapZooGameV2.js
Created November 22, 2021 01:39
same as v1 but on the v2 market
function scrapZooGame(zooprice, zooper100hashrate, alreadygot) {
fetch('https://api2.zoogame.finance/api/zoo/nft?price=LowToHigh&perPage=5000&currentPage=1&market=true').then(function(response) {
return response.json();
}).then(function(r) {
var solo = [];
solo = r.data.filter(z => alreadygot.indexOf(z.teamId) == -1);
var fams = {}
@Radishoux
Radishoux / moboxKeyWorth.js
Last active April 8, 2022 02:34
gives worth of a key based on cheapest marketplace's nft
function moboxKeyWorth() {
var keyworth = 0;
function postfetch(d, ratio) {
d = d.list[0];
d.endPrice /= 1000000000;
console.log(d.endPrice, ratio, d.endPrice * ratio);
return (d.endPrice * ratio);
}
@Radishoux
Radishoux / zooKeyWorth.js
Last active December 1, 2021 20:56
gives worth of a key based on cheapest marketplace's nft
function zooKeyWorth() {
var keyworth = 0;
function postfetch(d, ratio) {
d = d.data[0];
console.log(d.price, ratio, d.price * ratio)
return (d.price * ratio);
}
fetch('https://api2.zoogame.finance/api/zoo/nft?price=LowToHigh&perPage=1&market=true&rarity=1').then(function(response) {
@Radishoux
Radishoux / scrapZooGame.js
Last active October 20, 2021 10:23
an algo to scrap zoo api and find best set to buy
function scrapZooGame(zooprice, zooper100hashrate, alreadygot) {
fetch('https://api.zoogame.finance/api/zoo/market?nftName=&team=&rarity=&page=1&perPage=10000&type=1&currentPage=1').then(function(response) {
return response.json();
}).then(function(r) {
var multi = [];
var solo = [];
for (let i = 0; i < r.data.length; i++) {
@Radishoux
Radishoux / scrapMomo.js
Last active April 8, 2022 02:34
get a list of rare momo ordered by worthness (if you buy full family)
function scrapMomo(mboxprice, mboxper100hashrate) {
fetch('https://nftapi.mobox.io/auction/search/BNB?page=1&limit=10000&category=&vType=&sort=price&pType=').then(function(response) {
return response.json();
}).then(function(r) {
r = r.list
var fams = {}
var rares = []
for (let i = 0; i < r.length; i++) {
@Radishoux
Radishoux / test
Created July 31, 2018 15:30
justagistnoonewillsee
function myFunction() {
alert("Hello! I am an alert box!");
}