File tree Expand file tree Collapse file tree 8 files changed +14
-13
lines changed
Expand file tree Collapse file tree 8 files changed +14
-13
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ CryptoAPIs.Upbit.Spot.day_candle(;
99 market = " KRW-BTC" ,
1010 convertingPriceUnit = " KRW" ,
1111 count = 1 ,
12- to = DateTime (" 2023-01-01T00:00:00" )
12+ to = DateTime (" 2023-01-01T00:00:00" ),
1313)
1414
1515CryptoAPIs. Upbit. Spot. market_list (; isDetails = true )
Original file line number Diff line number Diff line change @@ -22,4 +22,5 @@ using .OrderBook
2222
2323include (" API/Ticker.jl" )
2424using . Ticker
25+
2526end
Original file line number Diff line number Diff line change 7474Client info.
7575
7676## Required fields
77- - `base_url::String`: Base URL for the client.
77+ - `base_url::String`: Base URL for the client.
7878
7979## Optional fields
8080- `public_key::String`: Public key for authentication.
Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ using CryptoAPIs.Coinbase
6161
6262result = Coinbase.Spot.candle(;
6363 granularity = Coinbase.Spot.Candle.d1
64- )
64+ )
6565
6666to_pretty_json(result.result)
6767```
Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ Gets a list of all known currencies.
7373using Serde
7474using CryptoAPIs.Coinbase
7575
76- result = Coinbase.Spot.currency()
76+ result = Coinbase.Spot.currency()
7777
7878to_pretty_json(result.result)
7979```
@@ -90,7 +90,7 @@ to_pretty_json(result.result)
9090 "message":null,
9191 "max_precision":1.0e-8,
9292 "convertible_to":[
93-
93+
9494 ],
9595 "details":{
9696 "type":"crypto",
@@ -100,10 +100,10 @@ to_pretty_json(result.result)
100100 "crypto_address_link":"https://etherscan.io/token/0x881ba05de1e78f549cc63a8f6cabb1d4ad32250d?a={{address}}",
101101 "crypto_transaction_link":"https://etherscan.io/tx/0x{{txId}}",
102102 "push_payment_methods":[
103-
103+
104104 ],
105105 "group_types":[
106-
106+
107107 ],
108108 "display_name":null,
109109 "processing_time_seconds":null,
Original file line number Diff line number Diff line change 11module DayCandle
22
33export DayCandleQuery,
4- DayCandleData,
4+ DayCandleData,
55 day_candle
66
77using Serde
@@ -58,7 +58,7 @@ using CryptoAPIs.Upbit
5858
5959result = Upbit.Spot.day_candle(;
6060 market = "KRW-BTC"
61- )
61+ )
6262
6363to_pretty_json(result.result)
6464```
@@ -93,4 +93,4 @@ function day_candle(client::UpbitClient = Upbit.Spot.public_client; kw...)
9393 return day_candle (client, DayCandleQuery (; kw... ))
9494end
9595
96- end
96+ end
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ abstract type UpbitPrivateQuery <: UpbitCommonQuery end
2727Client info.
2828
2929## Required fields
30- - `base_url::String`: Base URL for the client.
30+ - `base_url::String`: Base URL for the client.
3131
3232## Optional fields
3333- `public_key::String`: Public key for authentication.
Original file line number Diff line number Diff line change 11# Upbit/Utils
22
3- function Serde. deser (:: Type{<:UpbitData} , :: Type{<:Maybe{NanoDate}} , x:: Int64 ):: NanoDate
3+ function Serde. deser (:: Type{<:UpbitData} , :: Type{<:Maybe{NanoDate}} , x:: Int64 ):: NanoDate
44 return unixnanos2nanodate (x * 1e6 )
55end
66
7- function Serde. deser (:: Type{<:UpbitData} , :: Type{<:Maybe{NanoDate}} , x:: String ):: NanoDate
7+ function Serde. deser (:: Type{<:UpbitData} , :: Type{<:Maybe{NanoDate}} , x:: String ):: NanoDate
88 return NanoDate (x)
99end
1010
You can’t perform that action at this time.
0 commit comments