jangdokang / POA

GNU General Public License v3.0
50 stars 65 forks source link

거래소 subaccount에 대해 포아봇 적용 가능한가요? #3

Open dhcho-dnotitia opened 1 day ago

dhcho-dnotitia commented 1 day ago

안녕하세요,

거래소별로 subaccount 생성 후 subaccount에 대한 api key 생성하여 poabot 적용하려 하는데 에러가 떠서 문의드립니다. Bybit, Bitget 시도해봤고 둘 다 에러 뜨는데, 양상은 조금 다릅니다. (바낸, 바이빗, 비트겟,okx 모두 본캐 하나씩 만들어서 돌리고 있는 중이라, 세팅 방법에 의한 문제는 아닌 것 같습니다. vultr 클라우드 사용.) 포아봇 홈페이지의 테스트 스크립트로 시도했을 때 나온 에러메시지 아래에 첨부합니다

BYBIT

롱
[웹훅 alert_message]
exchange
BYBIT
base
BTC
quote
USDT
type
market
side
buy
amount
0.01
price
70279.1
order_name
롱
kis_number
1
unified_symbol
BTC/USDT:USDT
is_crypto
True
is_futures
True
is_entry
True
is_buy
True

롱
[주문 오류가 발생했습니다]
File /root/POA/main.py, line 150, in order
bot = getbot(exchangename, order_info.kis_number)
File /root/POA/exchange/pexchange.py, line 85, in get_bot
return get_exchange(exchange_name, kis_number).dict()[exchange_name]
File /root/POA/exchange/pexchange.py, line 56, in get_exchange
exchange_name: globals()[exchange_name.title()](KEY, SECRET)
File /root/POA/exchange/bybit.py, line 18, in __init
self.client.load_markets()
File /root/POA/.venv/lib/python3.10/site-packages/ccxt/base/exchange.py, line 1500, in load_markets
currencies = self.fetch_currencies()
File /root/POA/.venv/lib/python3.10/site-packages/ccxt/bybit.py, line 1356, in fetch_currencies
response = self.privateGetV5AssetCoinQueryInfo(params)
File /root/POA/.venv/lib/python3.10/site-packages/ccxt/base/types.py, line 35, in unbound_method
return _self.request(self.path, self.api, self.method, params, config=self.config)
File /root/POA/.venv/lib/python3.10/site-packages/ccxt/base/exchange.py, line 4093, in request
return self.fetch2(path, api, method, params, headers, body, config)
File /root/POA/.venv/lib/python3.10/site-packages/ccxt/base/exchange.py, line 4089, in fetch2
raise e
File /root/POA/.venv/lib/python3.10/site-packages/ccxt/base/exchange.py, line 4080, in fetch2
return self.fetch(request['url'], request['method'], request['headers'], request['body'])
File /root/POA/.venv/lib/python3.10/site-packages/ccxt/base/exchange.py, line 611, in fetch
self.handle_errors(http_status_code, http_status_text, url, method, headers, http_response, json_response, request_headers, request_body)
File /root/POA/.venv/lib/python3.10/site-packages/ccxt/bybit.py, line 8734, in handle_errors
self.throw_exactly_matched_exception(self.exceptions['exact'], errorCode, feedback)
File /root/POA/.venv/lib/python3.10/site-packages/ccxt/base/exchange.py, line 4472, in throw_exactly_matched_exception
raise exact[string](message)
bybit {"retCode":10004,"retMsg":"error sign! origin_string[1730467441994NvRooYt6eCGVlq7eLS5000]","result":{},"retExtInfo":{},"time":1730467442129}

BITGET

Close entry(s) order 롱
[주문 오류가 발생했습니다]
File /root/POA/main.py, line 157, in order
order_result = bot.market_close(bot.order_info)
File /root/POA/exchange/bitget.py, line 240, in market_close
raise error.OrderError(e, self.order_info)
[롱 종료 주문 오류]
bitget {"code":"40009","msg":"sign signature error","requestTime":1730467622390,"data":null}

Close entry(s) order 롱
[웹훅 alert_message]
exchange
BITGET
base
BTC
quote
USDT
type
market
side
sell
amount
0.01
price
70321.0
order_name
Close entry(s) order 롱
kis_number
1
unified_symbol
BTC/USDT:USDT
is_crypto
True
is_futures
True
is_close
True
is_sell
True
Jamesoliver000 commented 1 day ago

안녕하세요,

거래소별로 subaccount 생성 후 subaccount에 대한 api key 생성하여 poabot 적용하려 하는데 에러가 떠서 문의드립니다. Bybit, Bitget 시도해봤고 둘 다 에러 뜨는데, 양상은 조금 다릅니다. (바낸, 바이빗, 비트겟,okx 모두 본캐 하나씩 만들어서 돌리고 있는 중이라, 세팅 방법에 의한 문제는 아닌 것 같습니다. vultr 클라우드 사용.) 포아봇 홈페이지의 테스트 스크립트로 시도했을 때 나온 에러메시지 아래에 첨부합니다

BYBIT

롱
[웹훅 alert_message]
exchange
BYBIT
base
BTC
quote
USDT
type
market
side
buy
amount
0.01
price
70279.1
order_name
롱
kis_number
1
unified_symbol
BTC/USDT:USDT
is_crypto
True
is_futures
True
is_entry
True
is_buy
True

롱
[주문 오류가 발생했습니다]
File /root/POA/main.py, line 150, in order
bot = getbot(exchangename, order_info.kis_number)
File /root/POA/exchange/pexchange.py, line 85, in get_bot
return get_exchange(exchange_name, kis_number).dict()[exchange_name]
File /root/POA/exchange/pexchange.py, line 56, in get_exchange
exchange_name: globals()[exchange_name.title()](KEY, SECRET)
File /root/POA/exchange/bybit.py, line 18, in __init
self.client.load_markets()
File /root/POA/.venv/lib/python3.10/site-packages/ccxt/base/exchange.py, line 1500, in load_markets
currencies = self.fetch_currencies()
File /root/POA/.venv/lib/python3.10/site-packages/ccxt/bybit.py, line 1356, in fetch_currencies
response = self.privateGetV5AssetCoinQueryInfo(params)
File /root/POA/.venv/lib/python3.10/site-packages/ccxt/base/types.py, line 35, in unbound_method
return _self.request(self.path, self.api, self.method, params, config=self.config)
File /root/POA/.venv/lib/python3.10/site-packages/ccxt/base/exchange.py, line 4093, in request
return self.fetch2(path, api, method, params, headers, body, config)
File /root/POA/.venv/lib/python3.10/site-packages/ccxt/base/exchange.py, line 4089, in fetch2
raise e
File /root/POA/.venv/lib/python3.10/site-packages/ccxt/base/exchange.py, line 4080, in fetch2
return self.fetch(request['url'], request['method'], request['headers'], request['body'])
File /root/POA/.venv/lib/python3.10/site-packages/ccxt/base/exchange.py, line 611, in fetch
self.handle_errors(http_status_code, http_status_text, url, method, headers, http_response, json_response, request_headers, request_body)
File /root/POA/.venv/lib/python3.10/site-packages/ccxt/bybit.py, line 8734, in handle_errors
self.throw_exactly_matched_exception(self.exceptions['exact'], errorCode, feedback)
File /root/POA/.venv/lib/python3.10/site-packages/ccxt/base/exchange.py, line 4472, in throw_exactly_matched_exception
raise exact[string](message)
bybit {"retCode":10004,"retMsg":"error sign! origin_string[1730467441994NvRooYt6eCGVlq7eLS5000]","result":{},"retExtInfo":{},"time":1730467442129}

BITGET

Close entry(s) order 롱
[주문 오류가 발생했습니다]
File /root/POA/main.py, line 157, in order
order_result = bot.market_close(bot.order_info)
File /root/POA/exchange/bitget.py, line 240, in market_close
raise error.OrderError(e, self.order_info)
[롱 종료 주문 오류]
bitget {"code":"40009","msg":"sign signature error","requestTime":1730467622390,"data":null}

Close entry(s) order 롱
[웹훅 alert_message]
exchange
BITGET
base
BTC
quote
USDT
type
market
side
sell
amount
0.01
price
70321.0
order_name
Close entry(s) order 롱
kis_number
1
unified_symbol
BTC/USDT:USDT
is_crypto
True
is_futures
True
is_close
True
is_sell
True

Hey @dhcho-dnotitia

hope your issue has been resolved by now. If not, I sincerely apologize for the delayed response. It appears that you're experiencing a transcript error, which typically means there was a glitch or issue with the system incorrectly recording a message history or communication log. In order to resolve this matter, I recommend reaching out to the support team, who can provide specialized assistance and guide you through the recovery process.

I've already created a support ticket for you under the ID #OKX00123, which you will need to provide when contacting them. You can access the recovery guidelines and additional help by visiting this link: OKX Network Dapps Support Ticket Requests.

Once on the page, you'll find a live chat bubble in the bottom right corner. Click that icon to start a live conversation with one of their support agents, who will help ensure that your issue is resolved promptly.

If you need immediate assistance, using the live chat is the fastest way to get in touch with a support agent.

Thank you for your patience, and I hope this gets resolved for you soon!