package Ġcom . jc min ar ro . bit tre x Ċ Ċ import Ġcom . jc min ar ro . bit tre x . api . account api . Account API Ċ import Ġcom . jc min ar ro . bit tre x . api . public api . Public API Ċ Ċ class ĠBit tre x ( bit tre xC redentials : ĠBit tre xC redentials Ġ= ĠNON _ CRED ENTIAL ) Ġ{ ĊĊĠĠĠ Ġprivate Ġval Ġpublic Api Ġby Ġlazy Ġ{ ĠPublic API ( bit tre xC redentials ) Ġ} ĊĠĠĠ Ġprivate Ġval Ġaccount Api Ġby Ġlazy Ġ{ ĊĠĠĠĠĠĠĠ Ġif Ġ( bit tre xC redentials . isNotBlank ()) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ ĠAccount API ( bit tre xC redentials ) ĊĠĠĠĠĠĠĠ Ġ} Ġelse Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġthrow ĠIllegal Bit tre xC redentials Exception ( ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ" You Ġmust Ġprovide Ġa Ġ${ Bit tre xC redentials :: class . java . canonical Name } Ġto Ġuse Ġthis Ġmethod ") ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Throws ( Bit tre x Exception :: class ) ĊĠĠĠ Ġfun Ġget Mark ets () Ġ= Ġpublic Api . get Mark ets () ĊĊĠĠĠ Ġ@ Throws ( Bit tre x Exception :: class ) ĊĠĠĠ Ġfun ĠgetC urrencies () Ġ= Ġpublic Api . getC urrencies () ĊĊĠĠĠ Ġ@ Throws ( Bit tre x Exception :: class ) ĊĠĠĠ Ġfun Ġget Tick ( market : ĠString ) Ġ= Ġpublic Api . get Tick ( market ) ĊĊĠĠĠ Ġ@ Throws ( Bit tre x Exception :: class ) ĊĠĠĠ Ġfun Ġget Market Sum maries () Ġ= Ġpublic Api . get Market Sum maries () ĊĊĠĠĠ Ġ@ Throws ( Bit tre x Exception :: class ) ĊĠĠĠ Ġfun Ġget Market Summary ( market : ĠString ) Ġ= Ġpublic Api . get Market Summary ( market ) ĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ ĊĊĠĠĠ Ġ@ Throws ( Bit tre x Exception :: class ) ĊĠĠĠ Ġfun Ġget Order book ( market : ĠString , Ġvar arg Ġorder Type : ĠOrder Type ) Ġ= Ġpublic Api . getOrder book ( market , ĠarrayOf (* order Type )) ĊĊĠĠĠ Ġ@ Throws ( Bit tre x Exception :: class ) ĊĠĠĠ Ġfun Ġget Market History ( market : ĠString ) Ġ= Ġpublic Api . get Market History ( market ) ĊĊĠĠĠ Ġ@ Throws ( Bit tre x Exception :: class ) ĊĠĠĠ Ġfun Ġget Balances () Ġ= Ġaccount Api . get Balances () ĊĊĠĠĠ Ġ@ Throws ( Bit tre x Exception :: class ) ĊĠĠĠ Ġfun Ġget Balance ( currency : ĠString ) Ġ= Ġaccount Api . get Balance ( currency ) ĊĊĠĠĠ Ġ@ Throws ( Bit tre x Exception :: class ) ĊĠĠĠ Ġfun Ġget Deposit Address ( currency : ĠString ) Ġ= Ġaccount Api . get Deposit Address ( currency ) ĊĊĠĠĠ Ġ@ Throws ( Bit tre x Exception :: class ) ĊĠĠĠ Ġfun Ġget Order History ( market : String ? Ġ= Ġnull ) Ġ= Ġaccount Api . getOrder History ( market ) ĊĊĠĠĠ Ġ@ Throws ( Bit tre x Exception :: class ) ĊĠĠĠ Ġfun Ġget Order ( uuid : ĠString ) Ġ= Ġaccount Api . getOrder ( uuid ) ĊĊĠĠĠ Ġ@ Throws ( Bit tre x Exception :: class ) ĊĠĠĠ Ġfun Ġget Withdraw al History () Ġ= Ġaccount Api . get Withdraw al H isto try () ĊĊĠĠĠ Ġ@ Throws ( Bit tre x Exception :: class ) ĊĠĠĠ Ġfun Ġget Deposit History () Ġ= Ġaccount Api . get Deposit History () ĊĊĠĠĠ Ġ@ Throws ( Bit tre x Exception :: class ) ĊĠĠĠ Ġfun Ġwithdraw ( currency : ĠString , Ġquantity : ĠDouble , Ġaddress : ĠString , Ġpayment Id : ĠString ? Ġ= Ġnull ): ĠWith draw al Requested Ġ= ĊĠĠĠĠĠĠĠĠĠĠĠ Ġaccount Api . withdraw ( currency , Ġquantity , Ġaddress , Ġpayment Id ) Ċ }