@@ -220,6 +220,7 @@ func (this *bitopro) Describe() interface{} {
220220 "BEP20" : "BSC" ,
221221 "BSC" : "BSC" ,
222222 },
223+ "fiatCurrencies" : []interface {}{"TWD" },
223224 },
224225 "features" : map [string ]interface {} {
225226 "spot" : map [string ]interface {} {
@@ -354,6 +355,7 @@ func (this *bitopro) FetchCurrencies(optionalArgs ...interface{}) <- chan inter
354355 // }
355356 //
356357 var result interface {} = map [string ]interface {} {}
358+ var fiatCurrencies interface {} = this .SafeList (this .Options , "fiatCurrencies" , []interface {}{})
357359 for i := 0 ; IsLessThan (i , GetArrayLength (currencies )); i ++ {
358360 var currency interface {} = GetValue (currencies , i )
359361 var currencyId interface {} = this .SafeString (currency , "currency" )
@@ -373,11 +375,12 @@ func (this *bitopro) FetchCurrencies(optionalArgs ...interface{}) <- chan inter
373375 "max" : nil ,
374376 },
375377 }
378+ var isFiat interface {} = this .InArray (code , fiatCurrencies )
376379 AddElementToObject (result , code , map [string ]interface {} {
377380 "id" : currencyId ,
378381 "code" : code ,
379382 "info" : currency ,
380- "type" : nil ,
383+ "type" : Ternary ( IsTrue ( isFiat ), "fiat" , "crypto" ) ,
381384 "name" : nil ,
382385 "active" : IsTrue (deposit ) && IsTrue (withdraw ),
383386 "deposit" : deposit ,
@@ -559,8 +562,8 @@ func (this *bitopro) FetchTicker(symbol interface{}, optionalArgs ...interface{
559562 params := GetArg (optionalArgs , 0 , map [string ]interface {} {})
560563 _ = params
561564
562- retRes5528 := (<- this .LoadMarkets ())
563- PanicOnError (retRes5528 )
565+ retRes5558 := (<- this .LoadMarkets ())
566+ PanicOnError (retRes5558 )
564567 var market interface {} = this .Market (symbol )
565568 var request interface {} = map [string ]interface {} {
566569 "pair" : GetValue (market , "id" ),
@@ -608,8 +611,8 @@ func (this *bitopro) FetchTickers(optionalArgs ...interface{}) <- chan interfac
608611 params := GetArg (optionalArgs , 1 , map [string ]interface {} {})
609612 _ = params
610613
611- retRes5858 := (<- this .LoadMarkets ())
612- PanicOnError (retRes5858 )
614+ retRes5888 := (<- this .LoadMarkets ())
615+ PanicOnError (retRes5888 )
613616
614617 response := (<- this .PublicGetTickers ())
615618 PanicOnError (response )
@@ -656,8 +659,8 @@ func (this *bitopro) FetchOrderBook(symbol interface{}, optionalArgs ...interfa
656659 params := GetArg (optionalArgs , 1 , map [string ]interface {} {})
657660 _ = params
658661
659- retRes6178 := (<- this .LoadMarkets ())
660- PanicOnError (retRes6178 )
662+ retRes6208 := (<- this .LoadMarkets ())
663+ PanicOnError (retRes6208 )
661664 var market interface {} = this .Market (symbol )
662665 var request interface {} = map [string ]interface {} {
663666 "pair" : GetValue (market , "id" ),
@@ -806,8 +809,8 @@ func (this *bitopro) FetchTrades(symbol interface{}, optionalArgs ...interface{
806809 params := GetArg (optionalArgs , 2 , map [string ]interface {} {})
807810 _ = params
808811
809- retRes7488 := (<- this .LoadMarkets ())
810- PanicOnError (retRes7488 )
812+ retRes7518 := (<- this .LoadMarkets ())
813+ PanicOnError (retRes7518 )
811814 var market interface {} = this .Market (symbol )
812815 var request interface {} = map [string ]interface {} {
813816 "pair" : GetValue (market , "id" ),
@@ -851,8 +854,8 @@ func (this *bitopro) FetchTradingFees(optionalArgs ...interface{}) <- chan inte
851854 params := GetArg (optionalArgs , 0 , map [string ]interface {} {})
852855 _ = params
853856
854- retRes7798 := (<- this .LoadMarkets ())
855- PanicOnError (retRes7798 )
857+ retRes7828 := (<- this .LoadMarkets ())
858+ PanicOnError (retRes7828 )
856859
857860 response := (<- this .PublicGetProvisioningLimitationsAndFees (params ))
858861 PanicOnError (response )
@@ -971,8 +974,8 @@ func (this *bitopro) FetchOHLCV(symbol interface{}, optionalArgs ...interface{}
971974 params := GetArg (optionalArgs , 3 , map [string ]interface {} {})
972975 _ = params
973976
974- retRes8858 := (<- this .LoadMarkets ())
975- PanicOnError (retRes8858 )
977+ retRes8888 := (<- this .LoadMarkets ())
978+ PanicOnError (retRes8888 )
976979 var market interface {} = this .Market (symbol )
977980 var resolution interface {} = this .SafeString (this .Timeframes , timeframe , timeframe )
978981 var request interface {} = map [string ]interface {} {
@@ -1104,8 +1107,8 @@ func (this *bitopro) FetchBalance(optionalArgs ...interface{}) <- chan interfac
11041107 params := GetArg (optionalArgs , 0 , map [string ]interface {} {})
11051108 _ = params
11061109
1107- retRes10068 := (<- this .LoadMarkets ())
1108- PanicOnError (retRes10068 )
1110+ retRes10098 := (<- this .LoadMarkets ())
1111+ PanicOnError (retRes10098 )
11091112
11101113 response := (<- this .PrivateGetAccountsBalance (params ))
11111114 PanicOnError (response )
@@ -1256,8 +1259,8 @@ func (this *bitopro) CreateOrder(symbol interface{}, typeVar interface{}, side
12561259 params := GetArg (optionalArgs , 1 , map [string ]interface {} {})
12571260 _ = params
12581261
1259- retRes11428 := (<- this .LoadMarkets ())
1260- PanicOnError (retRes11428 )
1262+ retRes11458 := (<- this .LoadMarkets ())
1263+ PanicOnError (retRes11458 )
12611264 var market interface {} = this .Market (symbol )
12621265 var request interface {} = map [string ]interface {} {
12631266 "type" : typeVar ,
@@ -1333,8 +1336,8 @@ func (this *bitopro) CancelOrder(id interface{}, optionalArgs ...interface{}) <
13331336 panic (ArgumentsRequired (Add (this .Id , " cancelOrder() requires a symbol argument" )))
13341337 }
13351338
1336- retRes12038 := (<- this .LoadMarkets ())
1337- PanicOnError (retRes12038 )
1339+ retRes12068 := (<- this .LoadMarkets ())
1340+ PanicOnError (retRes12068 )
13381341 var market interface {} = this .Market (symbol )
13391342 var request interface {} = map [string ]interface {} {
13401343 "id" : id ,
@@ -1398,8 +1401,8 @@ func (this *bitopro) CancelOrders(ids interface{}, optionalArgs ...interface{})
13981401 panic (ArgumentsRequired (Add (this .Id , " cancelOrders() requires a symbol argument" )))
13991402 }
14001403
1401- retRes12538 := (<- this .LoadMarkets ())
1402- PanicOnError (retRes12538 )
1404+ retRes12568 := (<- this .LoadMarkets ())
1405+ PanicOnError (retRes12568 )
14031406 var market interface {} = this .Market (symbol )
14041407 var id interface {} = GetValue (market , "uppercaseId" )
14051408 var request interface {} = map [string ]interface {} {}
@@ -1444,8 +1447,8 @@ func (this *bitopro) CancelAllOrders(optionalArgs ...interface{}) <- chan inter
14441447 params := GetArg (optionalArgs , 1 , map [string ]interface {} {})
14451448 _ = params
14461449
1447- retRes12838 := (<- this .LoadMarkets ())
1448- PanicOnError (retRes12838 )
1450+ retRes12868 := (<- this .LoadMarkets ())
1451+ PanicOnError (retRes12868 )
14491452 var request interface {} = map [string ]interface {} {}
14501453 var response interface {} = nil
14511454 if IsTrue (! IsEqual (symbol , nil )) {
@@ -1500,8 +1503,8 @@ func (this *bitopro) FetchOrder(id interface{}, optionalArgs ...interface{}) <-
15001503 panic (ArgumentsRequired (Add (this .Id , " fetchOrder() requires a symbol argument" )))
15011504 }
15021505
1503- retRes13238 := (<- this .LoadMarkets ())
1504- PanicOnError (retRes13238 )
1506+ retRes13268 := (<- this .LoadMarkets ())
1507+ PanicOnError (retRes13268 )
15051508 var market interface {} = this .Market (symbol )
15061509 var request interface {} = map [string ]interface {} {
15071510 "orderId" : id ,
@@ -1568,8 +1571,8 @@ func (this *bitopro) FetchOrders(optionalArgs ...interface{}) <- chan interface
15681571 panic (ArgumentsRequired (Add (this .Id , " fetchOrders() requires a symbol argument" )))
15691572 }
15701573
1571- retRes13718 := (<- this .LoadMarkets ())
1572- PanicOnError (retRes13718 )
1574+ retRes13748 := (<- this .LoadMarkets ())
1575+ PanicOnError (retRes13748 )
15731576 var market interface {} = this .Market (symbol )
15741577 var request interface {} = map [string ]interface {} {
15751578 "pair" : GetValue (market , "id" ),
@@ -1645,8 +1648,8 @@ func (this *bitopro) FetchOpenOrders(optionalArgs ...interface{}) <- chan inter
16451648 params := GetArg (optionalArgs , 3 , map [string ]interface {} {})
16461649 _ = params
16471650
1648- retRes14328 := (<- this .LoadMarkets ())
1649- PanicOnError (retRes14328 )
1651+ retRes14358 := (<- this .LoadMarkets ())
1652+ PanicOnError (retRes14358 )
16501653 var request interface {} = map [string ]interface {} {}
16511654 var market interface {} = nil
16521655 if IsTrue (! IsEqual (symbol , nil )) {
@@ -1726,8 +1729,8 @@ func (this *bitopro) FetchMyTrades(optionalArgs ...interface{}) <- chan interfa
17261729 panic (ArgumentsRequired (Add (this .Id , " fetchMyTrades() requires a symbol argument" )))
17271730 }
17281731
1729- retRes14778 := (<- this .LoadMarkets ())
1730- PanicOnError (retRes14778 )
1732+ retRes14808 := (<- this .LoadMarkets ())
1733+ PanicOnError (retRes14808 )
17311734 var market interface {} = this .Market (symbol )
17321735 var request interface {} = map [string ]interface {} {
17331736 "pair" : GetValue (market , "id" ),
@@ -1888,8 +1891,8 @@ func (this *bitopro) FetchDeposits(optionalArgs ...interface{}) <- chan interfa
18881891 panic (ArgumentsRequired (Add (this .Id , " fetchDeposits() requires the code argument" )))
18891892 }
18901893
1891- retRes16198 := (<- this .LoadMarkets ())
1892- PanicOnError (retRes16198 )
1894+ retRes16228 := (<- this .LoadMarkets ())
1895+ PanicOnError (retRes16228 )
18931896 var currency interface {} = this .SafeCurrency (code )
18941897 var request interface {} = map [string ]interface {} {
18951898 "currency" : GetValue (currency , "id" ),
@@ -1960,8 +1963,8 @@ func (this *bitopro) FetchWithdrawals(optionalArgs ...interface{}) <- chan inte
19601963 panic (ArgumentsRequired (Add (this .Id , " fetchWithdrawals() requires the code argument" )))
19611964 }
19621965
1963- retRes16728 := (<- this .LoadMarkets ())
1964- PanicOnError (retRes16728 )
1966+ retRes16758 := (<- this .LoadMarkets ())
1967+ PanicOnError (retRes16758 )
19651968 var currency interface {} = this .SafeCurrency (code )
19661969 var request interface {} = map [string ]interface {} {
19671970 "currency" : GetValue (currency , "id" ),
@@ -2026,8 +2029,8 @@ func (this *bitopro) FetchWithdrawal(id interface{}, optionalArgs ...interface{
20262029 panic (ArgumentsRequired (Add (this .Id , " fetchWithdrawal() requires the code argument" )))
20272030 }
20282031
2029- retRes17238 := (<- this .LoadMarkets ())
2030- PanicOnError (retRes17238 )
2032+ retRes17268 := (<- this .LoadMarkets ())
2033+ PanicOnError (retRes17268 )
20312034 var currency interface {} = this .SafeCurrency (code )
20322035 var request interface {} = map [string ]interface {} {
20332036 "serial" : id ,
@@ -2085,8 +2088,8 @@ func (this *bitopro) Withdraw(code interface{}, amount interface{}, address int
20852088 tag = GetValue (tagparamsVariable ,0 );
20862089 params = GetValue (tagparamsVariable ,1 )
20872090
2088- retRes17648 := (<- this .LoadMarkets ())
2089- PanicOnError (retRes17648 )
2091+ retRes17678 := (<- this .LoadMarkets ())
2092+ PanicOnError (retRes17678 )
20902093 this .CheckAddress (address )
20912094 var currency interface {} = this .Currency (code )
20922095 var request interface {} = map [string ]interface {} {
@@ -2176,8 +2179,8 @@ func (this *bitopro) FetchDepositWithdrawFees(optionalArgs ...interface{}) <- c
21762179 params := GetArg (optionalArgs , 1 , map [string ]interface {} {})
21772180 _ = params
21782181
2179- retRes18388 := (<- this .LoadMarkets ())
2180- PanicOnError (retRes18388 )
2182+ retRes18418 := (<- this .LoadMarkets ())
2183+ PanicOnError (retRes18418 )
21812184
21822185 response := (<- this .PublicGetProvisioningCurrencies (params ))
21832186 PanicOnError (response )
0 commit comments