이 오류가 발생하면 try를 사용하는 방법을 python에서 알려주세요.

저자:타올루, 창작: 2021-12-01 12:00:09, 업데이트:

오류 Sell ((581.63, 0.01): 400: {code:-4024,msg:Limit price cant be lower than 600.087} 제 코드 def sell ((currency,price,amount)): 파는 것 로그 (("sell currency: ", currency) set_precision ((currency)) exchange.SetDirection (sell) id1 = 0 k = 0 while (id1 == 0 and k == 0): try: id1 = exchange.Sell (값, 금액) Log (("price: ", price) 로그) 로그 (("amount: ", amount) k = 1 Log (("k: ", k) 그 외: cancel_all_sell_order ((currency)) 계속하세요 return id1

이 문서는 이 문서를 입력하지 않습니다.


더 많은

작은 꿈예외 메커니즘은 프로그램 이상만을 캡처할 수 있으며, 인터페이스 보고는 프로그램 이상으로 간주되지 않습니다. (인터페이스 보고는 인터페이스 비즈니스 오류가 아니라 예외입니다.)

작은 꿈같은 경우, 호출 실패는 빈값을 반환합니다.

작은 꿈nil는 빈값을 뜻한다. 인터페이스가 호출 실패인지 판단하고 빈값이 반환되는지 판단하면 된다.

타올루저는 다시 0을 반환하는 것처럼 보지만 문자열이나 타입이 무엇인지 모르겠어요.

타올루502: ERROR: The request could not be satisfied

502"> ERROR





























>




>


>

작은 꿈`` Sell ((581.63, 0.01): 400: {"코드":-4024, "msg:"Limit price can't be lower than 600.087"} `` 이 작업 오류는 인터페이스가 빈값을 반환하고, 파이썬은 ``None``. JS는 ``null ``. 거래소 인터페이스 원본 응답 정보를 얻을 수 있습니다. FMZ API 문서에 있는 GetRawJSON을 사용하여 참조하십시오.

타올루문자열이나 어떤 타입인지

타올루S_ID: 이 문자열의 값을 반환합니다.

타올루이 값은 이 문자열의 값입니다.

타올루이런 상황을 어떻게 극복할 수 있을까요?

타올루Sell ((4649.03, 0.022): 502: ERROR: The request could not be satisfied

502"> ERROR


noshade size="1px"> The connection originated closed. We can't connect to the server for this website at this time too. There might be too much later configuration. If you can't clear the data, you can delete this error. If you can't find the data, you can delete this error. If you can't clear the data, you can delete this error. If you can't find the data, 이 오류는 다시 일어나지 않을 것입니다.