왜 아날로그 레벨과 실제 디스크 레벨의 리테스트 결과가 다르지? 토큰넷의 BTC_USDT로 설정됩니다.

저자:가오프05210, 2019-08-01 14:54:24, 업데이트: 2019-08-01 15:19:30

def CancelPendingOrders():
    orders = _C(exchange.GetOrders)
    Log(len(orders))
    for order in orders:
          exchange.CancelOrder(order.Id,order)


def onTick():
    depth = _C(exchange.GetDepth)
    askprice = depth.Asks[0].Price-0.01
    bidprice = depth.Bids[0].Price+0.01
    if bidprice<askprice:
        bidprice = askprice+0.01
    CancelPendingOrders()
    
    exchange.Sell(askprice,30)
    exchange.Buy(bidprice,30)


def main():
    while (true):
        onTick()
        Sleep(2000)

더 많은

작은 꿈이 게시물을 볼 수 있습니다: https://www.fmz.com/bbs-topic/662 실제 디스크 레벨 재검토와 모형 레벨 재검토는 재검토 메커니즘이 다르다.