This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": "0.1.0", | |
"name": "pump", | |
"instructions": [ | |
{ | |
"name": "initialize", | |
"docs": [ | |
"Creates the global state." | |
], | |
"accounts": [ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import logging | |
import os | |
import math | |
from decimal import Decimal | |
from typing import Dict | |
from pydantic import Field | |
from hummingbot.connector.utils import split_hb_trading_pair | |
from hummingbot.core.data_type.order_candidate import OrderCandidate | |
from hummingbot.core.event.events import OrderFilledEvent, OrderType, TradeType |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import logging | |
import os | |
import math | |
from decimal import Decimal | |
from typing import Dict | |
from pydantic import Field | |
from hummingbot.connector.utils import split_hb_trading_pair | |
from hummingbot.core.data_type.order_candidate import OrderCandidate | |
from hummingbot.core.event.events import OrderFilledEvent, OrderType, TradeType |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from decimal import Decimal | |
from typing import Dict | |
from hummingbot.connector.connector_base import ConnectorBase | |
from hummingbot.core.data_type.common import OrderType, PositionSide, PositionAction | |
from hummingbot.data_feed.candles_feed.candles_factory import CandlesConfig | |
from hummingbot.smart_components.controllers.dman_v3 import DManV3, DManV3Config | |
from hummingbot.smart_components.strategy_frameworks.data_types import ( | |
ExecutorHandlerStatus, | |
TripleBarrierConf, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from decimal import Decimal | |
from typing import Dict | |
from hummingbot.connector.connector_base import ConnectorBase | |
from hummingbot.core.data_type.common import OrderType, PositionSide, PositionAction | |
from hummingbot.data_feed.candles_feed.candles_factory import CandlesConfig | |
from hummingbot.smart_components.controllers.dman_v3 import DManV3, DManV3Config | |
from hummingbot.smart_components.strategy_frameworks.data_types import ( | |
ExecutorHandlerStatus, | |
TripleBarrierConf, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import time | |
from decimal import Decimal | |
import pandas_ta as ta # noqa: F401 | |
from hummingbot.core.data_type.common import TradeType | |
from hummingbot.smart_components.executors.position_executor.data_types import PositionConfig, TrailingStop | |
from hummingbot.smart_components.executors.position_executor.position_executor import PositionExecutor | |
from hummingbot.smart_components.strategy_frameworks.data_types import OrderLevel | |
from hummingbot.smart_components.strategy_frameworks.market_making.market_making_controller_base import ( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import time | |
from decimal import Decimal | |
import pandas_ta as ta # noqa: F401 | |
from hummingbot.core.data_type.common import TradeType | |
from hummingbot.smart_components.executors.position_executor.data_types import PositionConfig, TrailingStop | |
from hummingbot.smart_components.executors.position_executor.position_executor import PositionExecutor | |
from hummingbot.smart_components.strategy_frameworks.data_types import OrderLevel | |
from hummingbot.smart_components.strategy_frameworks.market_making.market_making_controller_base import ( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pandas as pd | |
import os | |
def main(): | |
""" | |
This script processes a Hummingbot trades CSV file containing trade data and generates metrics such as total volume, | |
buy/sell amount, average prices, and profitability for each symbol. The results are saved to a new CSV file and displayed. | |
""" | |
# Prompt the user for the file path |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// File @openzeppelin/contracts/token/ERC20/IERC20.sol@v2.5.0 | |
pragma solidity ^0.5.5; | |
/** | |
* @dev Interface of the ERC20 standard as defined in the EIP. Does not include | |
* the optional functions; to access them see {ERC20Detailed}. | |
*/ | |
interface IERC20 { | |
/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
contract Fund is Ownable { | |
Calculator calculator; | |
uint input1; | |
uint input2; | |
uint output; | |
function Fund (address _calculatorAddress) { | |
calculator = Calculator(_calculatorAddress); | |
} |
NewerOlder