-
-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
789a6c1
commit 0258b68
Showing
12 changed files
with
176 additions
and
39 deletions.
There are no files selected for viewing
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
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
__author__ = "Jerry Fedorenko" | ||
__copyright__ = "Copyright © 2021 Jerry Fedorenko aka VM" | ||
__license__ = "MIT" | ||
__version__ = "3.0.3" | ||
__version__ = "3.0.11" | ||
__maintainer__ = "Jerry Fedorenko" | ||
__contact__ = "https://github.com/DogsTailFarmer" | ||
""" | ||
|
@@ -41,6 +41,15 @@ | |
ex.FEE_TAKER = Decimal('0.1') # standard exchange Fee for taker | ||
ex.FEE_FIRST = False # For example fee in BNB and BNB in pair, and it is base asset | ||
ex.FEE_SECOND = False # For example fee in BNB and BNB in pair, and it is quote asset | ||
# Setting for auto deposit BNB on subaccount for fee payment. For Binance subaccount only. | ||
# See also https://github.com/DogsTailFarmer/martin-binance/wiki/How-it's-work#keeping-level-of-first-asset | ||
ex.FEE_BNB = { | ||
'id_exchange': 0, # Where collected assets and keeping BNB volume | ||
'symbol': 'BNB/USDT', # Specified on the source strategy (id_exchange above) | ||
'email': '[email protected]', # Email registered on this subaccount | ||
'target_amount': '0', # BNB in USD equivalent, no less than min_notional | ||
'tranche_volume': '0' # BNB in USD equivalent, no less than min_notional | ||
} | ||
ex.GRID_MAX_COUNT = 5 # Maximum counts for placed grid orders | ||
# Trade parameter | ||
ex.START_ON_BUY = True # First cycle direction | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
__author__ = "Jerry Fedorenko" | ||
__copyright__ = "Copyright © 2021 Jerry Fedorenko aka VM" | ||
__license__ = "MIT" | ||
__version__ = "3.0.3" | ||
__version__ = "3.0.11" | ||
__maintainer__ = "Jerry Fedorenko" | ||
__contact__ = "https://github.com/DogsTailFarmer" | ||
""" | ||
|
@@ -41,7 +41,16 @@ | |
ex.FEE_TAKER = Decimal('0.1') # standard exchange Fee for taker | ||
ex.FEE_FIRST = False # For example fee in BNB and BNB in pair, and it is base asset | ||
ex.FEE_SECOND = False # For example fee in BNB and BNB in pair, and it is quote asset | ||
ex.GRID_MAX_COUNT = 3 # Maximum counts for placed grid orders | ||
# Setting for auto deposit BNB on subaccount for fee payment. For Binance subaccount only. | ||
# See also https://github.com/DogsTailFarmer/martin-binance/wiki/How-it's-work#keeping-level-of-first-asset | ||
ex.FEE_BNB = { | ||
'id_exchange': 0, # Where collected assets and keeping BNB volume | ||
'symbol': 'BNB/USDT', # Specified on the source strategy (id_exchange above) | ||
'email': '[email protected]', # Email registered on this subaccount | ||
'target_amount': '0', # BNB in USD equivalent, no less than min_notional | ||
'tranche_volume': '0' # BNB in USD equivalent, no less than min_notional | ||
} | ||
ex.GRID_MAX_COUNT = 5 # Maximum counts for placed grid orders | ||
# Trade parameter | ||
ex.START_ON_BUY = True # First cycle direction | ||
ex.AMOUNT_FIRST = Decimal('0.05') # Deposit for Sale cycle in first currency | ||
|
@@ -137,7 +146,7 @@ def trade(strategy=None): | |
loop.create_task(strategy.main(ex.SYMBOL)) | ||
loop.run_forever() | ||
except KeyboardInterrupt: | ||
pass # user interrupt | ||
pass # user interrupt | ||
finally: | ||
try: | ||
loop.run_until_complete(strategy.ask_exit()) | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
__author__ = "Jerry Fedorenko" | ||
__copyright__ = "Copyright © 2021 Jerry Fedorenko aka VM" | ||
__license__ = "MIT" | ||
__version__ = "3.0.3" | ||
__version__ = "3.0.11" | ||
__maintainer__ = "Jerry Fedorenko" | ||
__contact__ = "https://github.com/DogsTailFarmer" | ||
""" | ||
|
@@ -41,6 +41,15 @@ | |
ex.FEE_TAKER = Decimal('0.17') # standard exchange Fee for taker | ||
ex.FEE_FIRST = False # For example fee in BNB and BNB in pair, and it is base asset | ||
ex.FEE_SECOND = False # For example fee in BNB and BNB in pair, and it is quote asset | ||
# Setting for auto deposit BNB on subaccount for fee payment. For Binance subaccount only. | ||
# See also https://github.com/DogsTailFarmer/martin-binance/wiki/How-it's-work#keeping-level-of-first-asset | ||
ex.FEE_BNB = { | ||
'id_exchange': 0, # Where collected assets and keeping BNB volume | ||
'symbol': 'BNB/USDT', # Specified on the source strategy (id_exchange above) | ||
'email': '[email protected]', # Email registered on this subaccount | ||
'target_amount': '0', # BNB in USD equivalent, no less than min_notional | ||
'tranche_volume': '0' # BNB in USD equivalent, no less than min_notional | ||
} | ||
ex.GRID_MAX_COUNT = 5 # Maximum counts for placed grid orders | ||
# Trade parameter | ||
ex.START_ON_BUY = True # First cycle direction | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
__author__ = "Jerry Fedorenko" | ||
__copyright__ = "Copyright © 2021 Jerry Fedorenko aka VM" | ||
__license__ = "MIT" | ||
__version__ = "3.0.3" | ||
__version__ = "3.0.11" | ||
__maintainer__ = "Jerry Fedorenko" | ||
__contact__ = "https://github.com/DogsTailFarmer" | ||
""" | ||
|
@@ -41,6 +41,15 @@ | |
ex.FEE_TAKER = Decimal('0.15') # standard exchange Fee for taker | ||
ex.FEE_FIRST = False # For example fee in BNB and BNB in pair, and it is base asset | ||
ex.FEE_SECOND = False # For example fee in BNB and BNB in pair, and it is quote asset | ||
# Setting for auto deposit BNB on subaccount for fee payment. For Binance subaccount only. | ||
# See also https://github.com/DogsTailFarmer/martin-binance/wiki/How-it's-work#keeping-level-of-first-asset | ||
ex.FEE_BNB = { | ||
'id_exchange': 0, # Where collected assets and keeping BNB volume | ||
'symbol': 'BNB/USDT', # Specified on the source strategy (id_exchange above) | ||
'email': '[email protected]', # Email registered on this subaccount | ||
'target_amount': '0', # BNB in USD equivalent, no less than min_notional | ||
'tranche_volume': '0' # BNB in USD equivalent, no less than min_notional | ||
} | ||
ex.GRID_MAX_COUNT = 5 # Maximum counts for placed grid orders | ||
# Trade parameter | ||
ex.START_ON_BUY = True # First cycle direction | ||
|
Oops, something went wrong.