economy.management.commands.get_prices
Define the management command to pull new price data for tokens.
Copyright (C) 2021 Gitcoin Core
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/.
etherdelta
etherdelta()
Handle pulling market data from Etherdelta.
coingecko
coingecko(source, tokens)
Handle pulling market data from Coingecko.
cryptocompare
cryptocompare()
Handle pulling market data from CryptoCompare.
Updates ConversionRates only if data not available.
uniswap
uniswap()
Hangle pulling market data from Uniswap using its subgraph node on mainnet.
Command
Command(self, stdout=None, stderr=None, no_color=False, force_color=False)
Define the management command to update currency conversion rates.
help
str(object='') -> str str(bytes_or_buffer[, encoding[, errors]]) -> str
Create a new string object from the given object. If encoding or errors is specified, then the object must expose a data buffer that will be decoded using the given encoding and error handler. Otherwise, returns the result of object.str() (if defined) or repr(object). encoding defaults to sys.getdefaultencoding(). errors defaults to 'strict'.
handle
Command.handle(self, *args, **options)
Get the latest currency rates.
economy.management.commands.refresh_bounties
Define the management command to refresh bounty data.
Copyright (C) 2021 Gitcoin Core
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/.
Command
Command(self, stdout=None, stderr=None, no_color=False, force_color=False)
Define the management command to refresh bounties.
help
str(object='') -> str str(bytes_or_buffer[, encoding[, errors]]) -> str
Create a new string object from the given object. If encoding or errors is specified, then the object must expose a data buffer that will be decoded using the given encoding and error handler. Otherwise, returns the result of object.str() (if defined) or repr(object). encoding defaults to sys.getdefaultencoding(). errors defaults to 'strict'.
add_arguments
Command.add_arguments(self, parser)
Add argument handling to the refresh command.
handle
Command.handle(self, *args, **options)
Refresh all bounties.
Attributes:
all_bounties (QuerySet of Bounty): The queryset of all Bounties.
fetch_remote (bool): Whether or not to fetch remote bounties.
Defaults to: False
unless user passes the remote option.