# This file is part of Maker Keeper Framework. # # Copyright (C) 2017-2018 reverendus # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Affero General Public License for more details. # # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. import logging import sys from pyexchange.bibox import BiboxApi logging.basicConfig(format='%(asctime)-15s %(levelname)-8s %(message)s', level=logging.INFO) bibox = BiboxApi("https://api.bibox.com", sys.argv[1], sys.argv[2], 9.5) # print(len(bibox.get_trades('ETH_DAI', True, 50))) # print(len(bibox.get_trades('MKR_ETH', True))) print(len(bibox.get_trades('MKR_BTC', True)))
# This file is part of Maker Keeper Framework. # # Copyright (C) 2017-2018 reverendus # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Affero General Public License for more details. # # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. import logging import sys from pyexchange.bibox import BiboxApi logging.basicConfig(format='%(asctime)-15s %(levelname)-8s %(message)s', level=logging.INFO) bibox = BiboxApi("https://api.bibox.com", sys.argv[1], sys.argv[2], 9.5) # print(len(bibox.get_trades('ETH_DAI', True, 50))) print(len(bibox.get_trades('MKR_ETH', True, 50))) print(len(bibox.get_trades('MKR_BTC', True, 50)))