haha
This commit is contained in:
@@ -185,11 +185,11 @@ class BitmartFuturesTransaction:
|
||||
"""
|
||||
if marketPriceLongOrder == -1:
|
||||
self.click_safe('x://button[normalize-space(text()) ="市价"]')
|
||||
self.page.ele('x://*[@id="size_0"]').input(size)
|
||||
self.page.ele('x://*[@id="size_0"]').input(vals=size, clear=True)
|
||||
self.click_safe('x://span[normalize-space(text()) ="卖出/做空"]')
|
||||
elif marketPriceLongOrder == 1:
|
||||
self.click_safe('x://button[normalize-space(text()) ="市价"]')
|
||||
self.page.ele('x://*[@id="size_0"]').input(size)
|
||||
self.page.ele('x://*[@id="size_0"]').input(vals=size, clear=True)
|
||||
self.click_safe('x://span[normalize-space(text()) ="买入/做多"]')
|
||||
|
||||
if limitPriceShortOrder == -1:
|
||||
@@ -329,7 +329,7 @@ class BitmartFuturesTransaction:
|
||||
|
||||
self.开单(marketPriceLongOrder=1, size=size)
|
||||
self.start = 1
|
||||
time.sleep(15)
|
||||
time.sleep(35)
|
||||
|
||||
elif signal_type == 'reverse_short':
|
||||
# 平多 + 开空(反手做空)
|
||||
@@ -339,7 +339,7 @@ class BitmartFuturesTransaction:
|
||||
|
||||
self.开单(marketPriceLongOrder=-1, size=size)
|
||||
self.start = -1
|
||||
time.sleep(15)
|
||||
time.sleep(35)
|
||||
|
||||
def action(self):
|
||||
"""主循环"""
|
||||
|
||||
Reference in New Issue
Block a user