
    E#i'                         S SK Jr  S SKJr  S SKrS SKJrJrJrJ	r	J
r
JrJrJrJrJrJrJrJrJrJr  S SKJr  S SKJr  S SKJr  S SKJr  S S	KJr  S S
KJr   " S S\\5      rg)    )Exchange)ImplicitAPIN)AnyBalancesCurrencyIntMarketNumOrder	OrderBook	OrderSide	OrderTypeStrTickerTradeTradingFeesTransaction)List)ExchangeError)AuthenticationError)ArgumentsRequired)	BadSymbol)	TICK_SIZEc                   ^  ^  \ rS rSrS\4U 4S jjrS\4S jr0 4S\4S jjrSSS0 4S\	S\
S	\
S\\   4S
 jjrS2S\S\S\4S jjrS0 4S\S	\
S\4S jjrS2S\S\S\4S jjr0 4S\S\4S jjrS2S\S\S\4S jjrSSS0 4S\	S\
S	\
4S jjrSS0 4S\S\
S	\
S\\   4S jjr0 4S\4S jjrS0 4S\S\S\S\S\ 4
S jjr!S0 4S\S\	4S jjr"SSS0 4S\	S\
S	\
S\\#   4S jjr$SSS0 4S\	S\
S	\
S\\#   4S  jjr%S!\	4S" jr&S2S#\S$\'S\#4S% jjr(S& r)S'S(0 SS4S) jr*S*\+S+\S,\S-\S.\S/\4S0 jr,S1r-U =r.$ )3	coincheck   returnc                 ~  > U R                  [        [        U ]  5       SSSS/S0 SS _SS_SS	_S
S	_SS	_SS	_SS	_SS	_SS	_SS	_SS_SS	_SS	_SS_SS	_SS	_SS	_0 SS	_SS_SS	_SS	_SS	_SS	_SS	_SS	_S S	_S!S	_S"S_S#S	_S$S	_S%S	_S&S	_S'S	_S(S	_E0 S)S	_S*S	_S+S	_S,S	_S-S	_S.S	_S/S	_S0S	_S1S	_S2S	_S3S	_S4S	_S5S	_S6S	_S7S	_S8S	_S9S	_E0 S:S	_S;S	_S<S_S=S	_S>S	_S?S	_S@S_SAS	_SBS	_SCS_SDS	_SES	_SFS	_SGS	_SHS	_SIS	_SJS	_E0 SKS	_SLS	_SMS_SNS_SOS	_SPS_SQS	_SRS_SSS	_STS	_SUS	_SVS	_SWS	_SXS	_SYS	_SZS	_S[S_ES\S]S^0S_S`SaSb/Sc.Sd/ SeQ0/ SfQ/ SgQ/ ShQSi.Sj.U R	                  SkSlSmSnSoSpSSSq.5      U R	                  SrSsStSnSuSpSSSq.5      U R	                  SvSwSxSnSySpSSSq.5      U R	                  SzS{S|SnS}SpSSSq.5      U R	                  S~SStSmSuSoSSSq.5      S.S	S	S	S S	S	S	S S	S	SS	S.S	S	S	S	S	S	S	S.S S	S S S SS.S S	S S	S	S	S.S S S S.	S S S.S S S.S.SS	SU R                  S5      U R                  S5      S.0[        [        [        S.0 S.S.5      $ )Nr   JPIDi  CORSspotTmarginFswapfutureoption	addMarginborrowCrossMarginborrowIsolatedMarginborrowMargincancelOrdercloseAllPositionsclosePositioncreateOrder$createOrderWithTakeProfitAndStopLoss&createOrderWithTakeProfitAndStopLossWscreatePostOnlyOrdercreateReduceOnlyOrderfetchBalancefetchBorrowInterestfetchBorrowRatefetchBorrowRateHistoriesfetchBorrowRateHistoryfetchBorrowRatesfetchBorrowRatesPerSymbolfetchCrossBorrowRatefetchCrossBorrowRatesfetchDepositsfetchFundingHistoryfetchFundingIntervalfetchFundingIntervalsfetchFundingRatefetchFundingRateHistoryfetchFundingRatesfetchGreeksfetchIndexOHLCVfetchIsolatedBorrowRatefetchIsolatedBorrowRatesfetchIsolatedPositionsfetchLeveragefetchLeveragesfetchLeverageTiersfetchLiquidationsfetchLongShortRatiofetchLongShortRatioHistoryfetchMarginAdjustmentHistoryfetchMarginModefetchMarginModesfetchMarketLeverageTiersfetchMarkOHLCVfetchMarkPricesfetchMyLiquidationsfetchMySettlementHistoryfetchMyTradesfetchOpenInterestfetchOpenInterestHistoryfetchOpenInterestsfetchOpenOrdersfetchOptionfetchOptionChainfetchOrderBookfetchPositionfetchPositionHistoryfetchPositionModefetchPositionsfetchPositionsForSymbolfetchPositionsHistoryfetchPositionsRiskfetchPremiumIndexOHLCVfetchSettlementHistoryfetchTickerfetchTradesfetchTradingFeefetchTradingFeesfetchVolatilityHistoryfetchWithdrawalsreduceMarginrepayCrossMarginrepayIsolatedMarginrepayMarginsetLeverage	setMarginsetMarginModesetPositionModewszdhttps://user-images.githubusercontent.com/51840849/87182088-1d6d6380-c2ec-11ea-9c64-8ab9f9b289f5.jpgrestzhttps://coincheck.com/apizhttps://coincheck.comz,https://coincheck.com/documents/exchange/apiz"https://coincheck.com/exchange/feezhttps://coincheck.com/info/fee)logoapiwwwdocfeesget)zexchange/orders/rateorder_bookszrate/{pair}tickertrades)accountszaccounts/balancezaccounts/leverage_balancebank_accountsdeposit_moneyzexchange/orders/openszexchange/orders/transactionsz'exchange/orders/transactions_paginationzexchange/leverage/positionszlending/borrows/matches
send_money	withdraws)	r   zdeposit_money/{id}/fastzexchange/orderszexchange/transfers/to_leveragez exchange/transfers/from_leveragezlending/borrowszlending/borrows/{id}/repayr   r   )zbank_accounts/{id}zexchange/orders/{id}zwithdraws/{id})r|   postdelete)publicprivatebtc_jpyBTC/JPYBTCJPYbtcjpy)idsymbolbasequotebaseIdquoteIdtyper"   etc_jpyETC/JPYETCetcfct_jpyFCT/JPYFCTfctmona_jpyMONA/JPYMONAmonaetc_btcETC/BTC)r   r   r   r   r   )IOCFOKPOGTD)
marginModetriggerPricetriggerPriceTypetriggerDirectionstopLossPricetakeProfitPriceattachedStopLossTakeProfittimeInForcehedgedtrailingleveragemarketBuyByCostmarketBuyRequiresPriceselfTradePreventioniceberg)r   limitdaysBack	untilDayssymbolRequired)r   r   triggerr   r   )	sandboxr.   createOrdersrV   
fetchOrderrZ   fetchOrdersfetchClosedOrders
fetchOHLCV)linearinverse)r"   r$   r%   trading0)	tierBased
percentagemakertaker)zdisabled API Keyzinvalid authentication)exactbroad)r   name	countries	rateLimithasurlsrx   marketsfeaturesr{   precisionMode
exceptions)deep_extendsuperr   describesafe_market_structureparse_numberr   r   )self	__class__s    H/home/james-whalen/.local/lib/python3.13/site-packages/ccxt/coincheck.pyr   coincheck.describe   s~   i ? AVVV %V 	V
 %V %V UV $UV 'V V tV $UV  V tV 7V  9%!V" &u#V$ (%V& 'V( &u)V* "5+V, +E-V. )%/V0 #E1V2 ,U3V4 '5V6 (7V8  9V: &u;V< '=V> (?V@ #EAVB *5CVD $UEVF uGVH "5IVJ *5KVL +EMVN )%OVP  QVR !%SVT %eUVV $UWVX &uYVZ -e[V\ /]V^ "5_V` #EaVb +EcVd !%eVf "5gVh &uiVj +EkVl  mVn $UoVp +EqVr %esVt "4uVv uwVx #EyVz !${V|  }V~ 'V@ $UAVB !%CVD *5EVF (GVH %eIVJ )%KVL )%MVN tOVP tQVR "5SVT #DUVV )%WVX #DYVZ [V\ #E]V^ &u_V` uaVb ucVd UeVf  gVh "5iVj dkVp 7 /E84  
5*X  55YR[ejuz  GL  Y^  hn  x|  7}  ~55YR[ejuz  GL  Y^  hn  x|  7}  ~  55YR[ejuz  GL  Y^  hn  x|  7}  ~ 66jT^hny~  KQ  ^c  ms  }A  8B  C  55YR[ejuz  GL  Y^  hn  x|  7}  ~!:  %&+(-,0,1).+06:#(#("&#(	( #($)$)+027/4#()$, %)&+!%$(%)*.& #'&+!%#($)*/( $()-"&U+Z ##
 ##c5n !&"&!..s3!..s3	 ' )<.A [tD
 t t	    c                 n   SU0n[        U R                  R                  5       5      n[        S[	        U5      5       He  nX4   nU R                  U5      nUS   nXq;   d  M$  U R                  5       nUS-   n	U R                  X5      US'   U R                  X5      US'   XU'   Mg     U R                  U5      $ )Ninfor   r   	_reservedfreeused)	list
currencieskeysrangelencurrencyaccountsafe_stringsafe_balance)
r   responseresultcodesicoder   
currencyIdr   reserveds
             r   parse_balancecoincheck.parse_balance  s    )T__))+,q#e*%A8D}}T*H!$J%,,.%3"&"2"28"H"&"2"28"F&t &   ((r   c                 f    U R                  5         U R                  U5      nU R                  U5      $ )aN  
query for balance and get the amount of funds available for trading or funds locked in orders

https://coincheck.com/documents/exchange/api#order-transactions-pagination

:param dict [params]: extra parameters specific to the exchange API endpoint
:returns dict: a `balance structure <https://docs.ccxt.com/#/?id=balance-structure>`
)load_marketsprivateGetAccountsBalancer   )r   paramsr   s      r   fetch_balancecoincheck.fetch_balance  s1     	11&9!!(++r   Nr   sincer   c                 D   U R                  5         SnUb  U R                  U5      nU R                  U5      nU R                  US/ 5      nU R	                  XuX#5      n/ n	[        S[        U5      5       H(  n
U	R                  U R                  X   SS05      5        M*     U	$ )a  
fetch all unfilled currently open orders

https://coincheck.com/documents/exchange/api#order-opens

:param str symbol: unified market symbol
:param int [since]: the earliest time in ms to fetch open orders for
:param int [limit]: the maximum number of  open orders structures to retrieve
:param dict [params]: extra parameters specific to the exchange API endpoint
:returns Order[]: a list of `order structures <https://docs.ccxt.com/#/?id=order-structure>`
Nordersr   statusopen)	r   marketprivateGetExchangeOrdersOpens
safe_valueparse_ordersr   r   appendextend)r   r   r   r   r   r  r   	rawOrdersparsedOrdersr   r   s              r   fetch_open_orderscoincheck.fetch_open_orders'  s     	[[(F55f=OOHh;	((EIq#l+,AMM$++lo&7IJK -r   orderr  c                    U R                  US5      nU R                  US5      nU R                  U R                  US5      5      nU R                  US5      nU R                  US5      nU R                  US5      nS n	U R                  US5      n
U R                  XS5      nU R                  0 SU_SS _S	U_S
U R	                  U5      _SS _SU_SU_SS _SU_SS _SS _SS _SU	_SU_SU_SS _SS _S US S S.EU5      $ )Nr   
order_type
created_atpending_amountratepair_clientOrderId	timestampdatetimelastTradeTimestampamount	remainingfilledsider   r   postOnlyr   r   pricer   cost)feer   averager   )r   	parse8601safe_symbol
safe_orderiso8601)r   r  r  r   r  r  r  r  r  r   marketIdr   s               r   parse_ordercoincheck.parse_order@  s    eT*|4NN4#3#3E<#HI	!!%)9:$$U,<=	  /##E62!!(C8  
" 
T 
  
 Y/	 

 !$ 
 f 
  
 d 
 D 
 D 
 4 
  
 f 
 f 
 U 
  D! 
" D# 
$ + 
, - 	r   c                     U R                  5         U R                  U5      nSUS   0nU R                  U R                  XS5      5      nU R	                  XdS   5      $ )a  
fetches information on open orders with bid(buy) and ask(sell) prices, volumes and other data

https://coincheck.com/documents/exchange/api#order-book

:param str symbol: unified symbol of the market to fetch the order book for
:param int [limit]: the maximum amount of order book entries to return
:param dict [params]: extra parameters specific to the exchange API endpoint
:returns dict: A dictionary of `order book structures <https://docs.ccxt.com/#/?id=order-book-structure>` indexed by market symbols
r  r   r   )r   r  publicGetOrderBooksr  parse_order_book)r   r   r   r   r  requestr   s          r   fetch_order_bookcoincheck.fetch_order_bookp  s_     	V$F4L
 ++DKK,HI$$Xh/?@@r   r~   c                    U R                  S U5      nU R                  US5      nU R                  US5      nU R                  0 SU_SU_SU R	                  U5      _SU R                  US5      _SU R                  US5      _SU R                  US5      _SS _S	U R                  US	5      _S
S _SS _SS _SU_SU_SS _SS _SS _SS _U R                  US5      S US.EU5      $ )Nr  lastr   r  highlowbid	bidVolumeask	askVolumevwapr   closepreviousClosechanger   r  volume)
baseVolumequoteVolumer   )r!  safe_timestampr   safe_tickerr#  )r   r~   r  r   r  r.  s         r   parse_tickercoincheck.parse_ticker  sy    !!$/''<	/ !
f!
!
 Y/!
 D$$VV4	!

 4##FE2!
 4##FE2!
 !
 4##FE2!
 !
 D!
 D!
 T!
 D!
 T!
 d!
  $!!
" t#!
$ **68<)!
* + 	r   c                     US:w  a  [        U R                  S-   5      eU R                  5         U R                  U5      nSUS   0nU R	                  U R                  XB5      5      nU R                  XS5      $ )a  
fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market

https://coincheck.com/documents/exchange/api#ticker

:param str symbol: unified symbol of the market to fetch the ticker for
:param dict [params]: extra parameters specific to the exchange API endpoint
:returns dict: a `ticker structure <https://docs.ccxt.com/#/?id=ticker-structure>`
r   z$ fetchTicker() supports BTC/JPY onlyr  r   )r   r   r   r  publicGetTickerr  r>  )r   r   r   r  r*  r~   s         r   fetch_tickercoincheck.fetch_ticker  sy     YDGG&LLMMV$F4L
 %%dkk'&BC   00r   tradec                     U R                  U R                  US5      5      nU R                  US5      nU R                  US5      nU R                  US5      nU R                  XbS5      nUS   nUS   nUS   n	S n
S nS nS nS nS nS	U;   a  U R                  US	5      S
:X  a  Sn
OU R                  US	5      S:X  a  Sn
U R                  US0 5      nU R                  UU5      nU R                  UU5      nU R                  US5      U R                  US5      S.nU R                  US5      nU R                  US5      nO$U R                  US5      nU R                  US5      nU R	                  UUU R                  U5      UU	S UUU
UUUUS.U5      $ )Nr  r   r  r  r  r   r   r   	liquidityTr   Mr   fundsfee_currencyr  )r   r  r  order_idr  r  )r   r   r  r  r   r   r  r  takerOrMakerr  r  r  r  )r   r   safe_marketr  
safe_trader#  )r   rD  r  r  r   priceStringr$  r   r   r   rL  amountString
costStringr  r  orderIdrI  s                    r   parse_tradecoincheck.parse_trade  s   > NN4#3#3E<#HI	eT*&&uf5##E62!!(C8!#!
%{3s:&!!%5<&OOE7B7E++E6:L))%9J ,,UNC((6C ##E62D&&uj9G++E8<L##E<8DY/"( " 
  	r   c                     U R                  5         U R                  U5      n0 nUb  X6S'   U R                  U R                  Xd5      5      nU R	                  US/ 5      nU R                  XX#5      $ )a  
fetch all trades made by the user

https://coincheck.com/documents/exchange/api#order-transactions-pagination

:param str symbol: unified market symbol
:param int [since]: the earliest time in ms to fetch trades for
:param int [limit]: the maximum number of trades structures to retrieve
:param dict [params]: extra parameters specific to the exchange API endpoint
:returns Trade[]: a list of `trade structures <https://docs.ccxt.com/#/?id=trade-structure>`
r   data)r   r  .privateGetExchangeOrdersTransactionsPaginationr  	safe_listparse_trades)	r   r   r   r   r   r  r*  r   transactionss	            r   fetch_my_tradescoincheck.fetch_my_trades  sr     	V$$GFFt{{SZGcd. ~~h;  uDDr   c                     U R                  5         U R                  U5      nSUS   0nUb  X6S'   U R                  U R                  Xd5      5      nU R	                  US/ 5      nU R                  XX#5      $ )a  
get the list of most recent trades for a particular symbol

https://coincheck.com/documents/exchange/api#public-trades

:param str symbol: unified symbol of the market to fetch trades for
:param int [since]: timestamp in ms of the earliest trade to fetch
:param int [limit]: the maximum amount of trades to fetch
:param dict [params]: extra parameters specific to the exchange API endpoint
:returns Trade[]: a list of `trade structures <https://docs.ccxt.com/#/?id=public-trades>`
r  r   r   rV  )r   r  publicGetTradesr  rX  rY  )	r   r   r   r   r   r  r*  r   rV  s	            r   fetch_tradescoincheck.fetch_tradesA  s~     	V$F4L
 $G''G(DE ~~h3  u<<r   c                 ~   U R                  5         U R                  U5      nU R                  US0 5      n0 n[        S[	        U R
                  5      5       Hc  nU R
                  U   nU R                  U5      nU R                  X7S   0 5      nUUU R                  US5      U R                  US5      SSS.XF'   Me     U$ )	a,  
fetch the trading fees for multiple markets

https://coincheck.com/documents/exchange/api#account-info

:param dict [params]: extra parameters specific to the exchange API endpoint
:returns dict: a dictionary of `fee structures <https://docs.ccxt.com/#/?id=fee-structure>` indexed by market symbols
exchange_feesr   r   	maker_fee	taker_feeTF)r   r   r   r   r   r   )r   privateGetAccountsr  r   r   symbolsr  safe_number)	r   r   r   r{   r   r   r   r  r  s	            r   fetch_trading_feescoincheck.fetch_trading_feesb  s     	**62( x"=q#dll+,A\\!_F[[(F//$tb9C ))#{;))#{;""FN	 - r   r   r  r  r  c                    U R                  5         U R                  U5      nSUS   0nUS:X  aZ  US-   U-   US'   US:X  a  XHS'   OPU R                  US5      n	U R                  US5      nU	b  [	        U R
                  S	-   5      eXS
'   OX8S'   XXS'   XHS'   U R                  U R                  X5      5      n
U R                  U
S5      nU R                  UU
S.U5      $ )aP  
create a trade order

https://coincheck.com/documents/exchange/api#order-new

:param str symbol: unified symbol of the market to create an order in
:param str type: 'market' or 'limit'
:param str side: 'buy' or 'sell'
:param float amount: how much of currency you want to trade in units of base currency
:param float [price]: the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
:param dict [params]: extra parameters specific to the exchange API endpoint
:returns dict: an `order structure <https://docs.ccxt.com/#/?id=order-structure>`
r  r   r  r  r  sellr  r  zi createOrder() : you should use "cost" parameter instead of "amount" argument to create market buy ordersmarket_buy_amountr  )r   r   )
r   r  rg  omitr   r   privatePostExchangeOrdersr  r   r"  )r   r   r   r  r  r  r   r  r*  r  r   r   s               r   create_ordercoincheck.create_order  s    	V$F4L
 8$(3J$5GL!v~$*!''7662#+DGG  7b  -b  c  c/3+,$(L!#FO &H11$++g2NOh- 
  	r   r   c                 l    SU0nU R                  U R                  XC5      5      nU R                  U5      $ )aA  
cancels an open order

https://coincheck.com/documents/exchange/api#order-cancel

:param str id: order id
:param str symbol: not used by coincheck cancelOrder()
:param dict [params]: extra parameters specific to the exchange API endpoint
:returns dict: An `order structure <https://docs.ccxt.com/#/?id=order-structure>`
r   )privateDeleteExchangeOrdersIdr  r%  )r   r   r   r   r*  r   s         r   cancel_ordercoincheck.cancel_order  s>     "
 55dkk'6RS ))r   r   c                     U R                  5         Sn0 nUb  U R                  U5      nUS   US'   Ub  X6S'   U R                  U R                  Xd5      5      nU R	                  US/ 5      nU R                  XX#SS05      $ )a  
fetch all deposits made to an account

https://coincheck.com/documents/exchange/api#account-deposits

:param str code: unified currency code
:param int [since]: the earliest time in ms to fetch deposits for
:param int [limit]: the maximum number of deposits structures to retrieve
:param dict [params]: extra parameters specific to the exchange API endpoint
:returns dict[]: a list of `transaction structures <https://docs.ccxt.com/#/?id=transaction-structure>`
Nr   r   r   depositsr   deposit)r   r   privateGetDepositMoneyr  rX  parse_transactions	r   r   r   r   r   r   r*  r   rV  s	            r   fetch_depositscoincheck.fetch_deposits  s     	}}T*H"*4.GJ$G..t{{7/KL0 ~~h
B7&&tufiEXYYr   c                     U R                  5         SnUb  U R                  U5      n0 nUb  X6S'   U R                  U R                  Xd5      5      nU R	                  US/ 5      nU R                  XX#SS05      $ )a  
fetch all withdrawals made from an account

https://coincheck.com/documents/exchange/api#withdraws

:param str code: unified currency code
:param int [since]: the earliest time in ms to fetch withdrawals for
:param int [limit]: the maximum number of withdrawals structures to retrieve
:param dict [params]: extra parameters specific to the exchange API endpoint
:returns dict[]: a list of `transaction structures <https://docs.ccxt.com/#/?id=transaction-structure>`
Nr   rV  r   
withdrawal)r   r   privateGetWithdrawsr  rX  ry  rz  s	            r   fetch_withdrawalscoincheck.fetch_withdrawals  s     	}}T*H$G++DKK,HI, ~~h3&&tuflE[\\r   r   c                 8    SSSSSSS.nU R                  X!U5      $ )Npendingokcanceled)r  
processingfinishedr  	confirmedreceived)r   )r   r   statusess      r   parse_transaction_status"coincheck.parse_transaction_status*  s2     !#""	
 &99r   transactionr   c                 F   U R                  US5      nU R                  U R                  US5      5      nU R                  US5      nU R                  US5      nU R                  US5      nU R                  Xr5      nU R	                  U R                  US5      5      n	U R                  U R                  US5      5      n
S nU R                  US5      nUb  UUS	.n0 S
U_SU_SS _SU_SU R                  U5      _SS _SU_SU_SS _SS _SS _SS _SS _SU_SU_SU	_SU
_S S US.E$ )Nr   r  addressr  r   r   confirmed_atr  )r  r   r   txidr  r  network	addressToaddressFromtagtagTotagFromr   updated)commentinternalr  )r   r   rg  safe_currency_coder  r#  )r   r  r   r   r  r  r  r   r   r   r  r  feeCosts                r   parse_transactioncoincheck.parse_transaction7  s   6 k40NN4#3#3K#NO	"";	:!!+x8%%k:>
&&z<..t/?/?X/VW..!1!1+~!NO"";6 C
K
"
 D
 	

 Y/
 t
 w
 
 4
 4
 T
 t
 D
 f
 
  f!
" w#
$ )
 	
r   c                 "    U R                  5       $ N)milliseconds)r   s    r   noncecoincheck.noncex  s      ""r   r   GETc           	         U R                   S   S   S-   U R                  X5      -   nU R                  X@R                  U5      5      nUS:X  a  U(       a  USU R	                  U5      -   -  nOU R                  5         [        U R                  5       5      n	Sn
US:X  a.  U(       a&  USU R	                  U R                  U5      5      -   -  nO)U(       a"  U R	                  U R                  U5      5      nUn
X-   U
-   nSU R                  U	U R                  U R                  U5      U R                  U R                  5      [        R                  5      S	.nXsXeS
.$ )Nrx   rv   /r   ? r  z!application/x-www-form-urlencoded)zContent-Typez
ACCESS-KEYzACCESS-NONCEzACCESS-SIGNATURE)urlmethodbodyheaders)r   implode_paramsrm  extract_params	urlencodecheck_required_credentialsstrr  keysortapiKeyhmacencodesecrethashlibsha256)r   pathrx   r  r   r  r  r  queryr  queryStringauths               r   signcoincheck.sign{  s,   iiv&,t/B/B4/PP		&"5"5d";<(?sT^^E222++-

%EK3U0C!DDDC>>$,,u*=>D"&K;,D C"kk %$(IIdkk$.?T[[AY[b[i[i$j	G dOOr   httpCodereasonr  r  r  r  c
                 v   Uc  g U R                  USS5      n
U
(       d  U R                  US5      nU R                  S-   U R                  U5      -   nU R	                  U R
                  S   X5        U R                  U R
                  S   Xl5        [        U R                  S-   U R                  U5      -   5      eg )NsuccessTerror r   r   )	safe_boolr   r   jsonthrow_exactly_matched_exceptionr   throw_broadly_matched_exceptionr   )r   r  r  r  r  r  r  r   requestHeadersrequestBodyr  r  feedbacks                r   handle_errorscoincheck.handle_errors  s    
 ..9d;$$Xw7Eww}tyy'::H001I5[001I4Z#		(0C CDDr    r  )/__name__
__module____qualname____firstlineno__r   r   r   r   r   r   r   r   r   r	  dictr	   r%  r  r   r+  r   r>  rB  r   rS  r[  r_  r   rh  r   r   floatr
   ro  rs  r   r{  r  r  r   r  r  r  intr  __static_attributes____classcell__)r   s   @r   r   r      s   u# un) ) $& ,( , /3TXac  3 c hlmrhs 2. .v . .` :>b As A3 AY A&$4 $ $6 $L 02 13 1f 1>L Lv L L\ -1tRV_a )Ec )E )EC )EV 6:UW =3 =s =# =\`af\g =B )+ ,{ ,\ gksu &3 &i &y &RW &`c &P 37r *s *C *. *.Dt\^ -Z3 -Zc -Z -Zcghsct -Z^ -1tRV_a *]c *] *]C *]fjkvfw *]X:s :?
T ?
X ?
Q\ ?
B# &eBSW P4c 3 S # X\ dg  r   r   )ccxt.base.exchanger   ccxt.abstract.coincheckr   r  ccxt.base.typesr   r   r   r   r	   r
   r   r   r   r   r   r   r   r   r   typingr   ccxt.base.errorsr   r   r   r   ccxt.base.decimal_to_precisionr   r   r  r   r   <module>r     sP    ( /  \  \  \  \  \  * 0 . & 4Q+ Qr   