@@ -19,7 +19,7 @@ export create_order
19
19
20
20
#= ====== F U N C T I O N S ========#
21
21
"""
22
- get_fills(client::FuturesBaseRESTAPI; lastFillTime::Union{Int64, String,Nothing}=nothing)
22
+ get_fills(client::FuturesBaseRESTAPI; lastFillTime::Union{String,Nothing}=nothing)
23
23
24
24
Kraken Docs: [https://docs.futures.kraken.com/#http-api-trading-v3-api-historical-data-get-your-fills](https://docs.futures.kraken.com/#http-api-trading-v3-api-historical-data-get-your-fills)
25
25
@@ -48,7 +48,7 @@ Dict{String,Any}(
48
48
)
49
49
```
50
50
"""
51
- function get_fills (client:: FuturesBaseRESTAPI ; lastFillTime:: Union{Int64, String,Nothing} = nothing )
51
+ function get_fills (client:: FuturesBaseRESTAPI ; lastFillTime:: Union{String,Nothing} = nothing )
52
52
params:: Dict{String,Any} = Dict {String,Any} ()
53
53
isnothing (lastFillTime) ? nothing : params[" lastFillTime" ] = lastFillTime
54
54
return request (client, " GET" , " /derivatives/api/v3/fills" , query_params= params, auth= true )
@@ -67,7 +67,7 @@ Authenticated `client` required
67
67
```julia-repl
68
68
julia> client = FuturesBaseRESTAPI(key="api-key", secret="secret-key")
69
69
julia> println(create_batch_order(
70
- ... client,
70
+ ... client,
71
71
... batchorder_list=[
72
72
... Dict{String,Any}(
73
73
... "order" => "send",
@@ -108,7 +108,7 @@ julia> println(create_batch_order(
108
108
... "cliOrdId" => "my_client_id1234"
109
109
... )
110
110
... ]))
111
- ...
111
+ ...
112
112
julia> # please see the linked Kraken Docs for response examples
113
113
```
114
114
"""
125
125
126
126
Kraken Docs: [https://docs.futures.kraken.com/#http-api-trading-v3-api-order-management-cancel-all-orders](https://docs.futures.kraken.com/#http-api-trading-v3-api-order-management-cancel-all-orders)
127
127
128
- Cancels all active orders of a user.
128
+ Cancels all active orders of a user.
129
129
130
130
Authenticated `client` required
131
131
277
277
edit_order(client::FuturesBaseRESTAPI;
278
278
orderId::Union{String,Nothing}=nothing,
279
279
cliOrdId::Union{String,Nothing}=nothing,
280
- limitPrice::Union{String,Float64,Int64 ,Nothing}=nothing,
281
- size::Union{String,Float64,Int64 ,Nothing}=nothing,
282
- stopPrice::Union{String,Float64,Int64 ,Nothing}=nothing
280
+ limitPrice::Union{String,Float64,Int ,Nothing}=nothing,
281
+ size::Union{String,Float64,Int ,Nothing}=nothing,
282
+ stopPrice::Union{String,Float64,Int ,Nothing}=nothing
283
283
)
284
284
285
285
Kraken Docs: [https://docs.futures.kraken.com/#http-api-trading-v3-api-order-management-edit-order](https://docs.futures.kraken.com/#http-api-trading-v3-api-order-management-edit-order)
@@ -343,9 +343,9 @@ Dict{String,Any}(
343
343
function edit_order (client:: FuturesBaseRESTAPI ;
344
344
orderId:: Union{String,Nothing} = nothing ,
345
345
cliOrdId:: Union{String,Nothing} = nothing ,
346
- limitPrice:: Union{String,Float64,Int64 ,Nothing} = nothing ,
347
- size:: Union{String,Float64,Int64 ,Nothing} = nothing ,
348
- stopPrice:: Union{String,Float64,Int64 ,Nothing} = nothing
346
+ limitPrice:: Union{String,Float64,Int ,Nothing} = nothing ,
347
+ size:: Union{String,Float64,Int ,Nothing} = nothing ,
348
+ stopPrice:: Union{String,Float64,Int ,Nothing} = nothing
349
349
)
350
350
params:: Dict{String,Any} = Dict {String,Any} ()
351
351
if ! isnothing (orderId)
369
369
370
370
Kraken Docs: [https://docs.futures.kraken.com/#http-api-trading-v3-api-order-management-get-the-current-status-for-specific-orders](https://docs.futures.kraken.com/#http-api-trading-v3-api-order-management-get-the-current-status-for-specific-orders)
371
371
372
- Get information about (a) specific order(s) using `orderIds` or `cliOrdIds`.
372
+ Get information about (a) specific order(s) using `orderIds` or `cliOrdIds`.
373
373
374
374
Authenticated `client` required
375
375
@@ -427,18 +427,18 @@ end
427
427
create_order(client::FuturesBaseRESTAPI;
428
428
orderType::String,
429
429
side::String,
430
- size::Union{Float64,Int64 ,String},
430
+ size::Union{Float64,Int ,String},
431
431
symbol::String,
432
432
cliOrdId::Union{String,Nothing}=nothing,
433
- limitPrice::Union{String,Float64,Int64 ,Nothing}=nothing,
434
- stopPrice::Union{String,Float64,Int64 ,Nothing}=nothing,
433
+ limitPrice::Union{String,Float64,Int ,Nothing}=nothing,
434
+ stopPrice::Union{String,Float64,Int ,Nothing}=nothing,
435
435
reduceOnly::Union{Bool,Nothing}=nothing,
436
436
triggerSignal::Union{String,Nothing}=nothing
437
437
)
438
438
439
439
Kraken Docs: [https://docs.futures.kraken.com/#http-api-trading-v3-api-order-management-send-order](https://docs.futures.kraken.com/#http-api-trading-v3-api-order-management-send-order)
440
440
441
- Creates/places an order.
441
+ Creates/places an order.
442
442
443
443
Authenticated `client` required
444
444
@@ -488,11 +488,11 @@ Dict{String,Any}(
488
488
function create_order (client:: FuturesBaseRESTAPI ;
489
489
orderType:: String ,
490
490
side:: String ,
491
- size:: Union{Float64,Int64 ,String} ,
491
+ size:: Union{Float64,Int ,String} ,
492
492
symbol:: String ,
493
493
cliOrdId:: Union{String,Nothing} = nothing ,
494
- limitPrice:: Union{String,Float64,Int64 ,Nothing} = nothing ,
495
- stopPrice:: Union{String,Float64,Int64 ,Nothing} = nothing ,
494
+ limitPrice:: Union{String,Float64,Int ,Nothing} = nothing ,
495
+ stopPrice:: Union{String,Float64,Int ,Nothing} = nothing ,
496
496
reduceOnly:: Union{Bool,Nothing} = nothing ,
497
497
triggerSignal:: Union{String,Nothing} = nothing
498
498
)
0 commit comments