precompile_Backtest.jl
1 # Use 2 # @warnpcfail precompile(args...) 3 # if you want to be warned when a precompile directive fails 4 macro warnpcfail(ex::Expr) 5 modl = __module__ 6 file = __source__.file === nothing ? "?" : String(__source__.file) 7 line = __source__.line 8 quote 9 $(esc(ex)) || @warn """precompile directive 10 $($(Expr(:quote, ex))) 11 failed. Please report an issue in $($modl) (after checking for duplicates) or remove this directive.""" _file = 12 $file _line = $line 13 end 14 end 15 16 function _precompile_() 17 ccall(:jl_generating_output, Cint, ()) == 1 || return nothing 18 isdefined(JuBot, Symbol("##_get_zarray#11")) && precompile( 19 Tuple{ 20 JuBot.Data.var"##_get_zarray#11", 21 Type, 22 Bool, 23 Bool, 24 typeof(JuBot.Data._get_zarray), 25 JuBot.Data.ZarrInstance, 26 String, 27 Tuple{Int64,Int64}, 28 }, 29 ) 30 isdefined(JuBot, Symbol("##_save_pair#12")) && precompile( 31 Tuple{ 32 JuBot.Data.var"##_save_pair#12", 33 String, 34 Type, 35 Int64, 36 Int64, 37 Bool, 38 Bool, 39 typeof(JuBot.Data._save_pair), 40 JuBot.Data.ZarrInstance, 41 String, 42 Float64, 43 DataFrames.DataFrame, 44 }, 45 ) 46 isdefined(JuBot, Symbol("#_fetch_one_pair##kw")) && precompile( 47 Tuple{ 48 JuBot.Exchanges.var"#_fetch_one_pair##kw", 49 NamedTuple{(:from, :to),Tuple{Float64,String}}, 50 typeof(JuBot.Exchanges._fetch_one_pair), 51 PyCall.PyObject, 52 JuBot.Data.ZarrInstance, 53 String, 54 String, 55 }, 56 ) 57 isdefined(JuBot, Symbol("#_fetch_with_delay##kw")) && precompile( 58 Tuple{ 59 JuBot.Exchanges.var"#_fetch_with_delay##kw", 60 NamedTuple{(:since, :params, :df),Tuple{Int64,Base.Dict{Any,Any},Bool}}, 61 typeof(JuBot.Exchanges._fetch_with_delay), 62 PyCall.PyObject, 63 String, 64 String, 65 }, 66 ) 67 isdefined(JuBot, Symbol("#_load_pair##kw")) && precompile( 68 Tuple{ 69 JuBot.Data.var"#_load_pair##kw", 70 NamedTuple{(:as_z,),Tuple{Bool}}, 71 typeof(JuBot.Data._load_pair), 72 JuBot.Data.ZarrInstance, 73 String, 74 Float64, 75 }, 76 ) 77 isdefined(JuBot, Symbol("#_save_pair##kw")) && precompile( 78 Tuple{ 79 JuBot.Data.var"#_save_pair##kw", 80 NamedTuple{(:reset,),Tuple{Bool}}, 81 typeof(JuBot.Data._save_pair), 82 JuBot.Data.ZarrInstance, 83 String, 84 Float64, 85 DataFrames.DataFrame, 86 }, 87 ) 88 isdefined(JuBot, Symbol("#fill_missing_rows!##kw")) && precompile( 89 Tuple{ 90 JuBot.Data.var"#fill_missing_rows!##kw", 91 NamedTuple{(:strategy,),Tuple{Symbol}}, 92 typeof(JuBot.Data.fill_missing_rows!), 93 DataFrames.DataFrame, 94 Dates.Hour, 95 }, 96 ) 97 isdefined(JuBot, Symbol("#save_pair##kw")) && precompile( 98 Tuple{ 99 JuBot.Data.var"#save_pair##kw", 100 NamedTuple{(:reset,),Tuple{Bool}}, 101 typeof(JuBot.Data.save_pair), 102 JuBot.Data.ZarrInstance, 103 String, 104 String, 105 String, 106 DataFrames.DataFrame, 107 }, 108 ) 109 precompile(Tuple{typeof(JuBot.Analysis.__init__)}) 110 precompile(Tuple{typeof(JuBot.Data.__init__)}) 111 precompile( 112 Tuple{typeof(JuBot.Data._check_contiguity),Float64,Float64,Float64,Float64,Float64} 113 ) 114 precompile( 115 Tuple{ 116 typeof(JuBot.Data.is_incomplete_candle), 117 DataFrames.DataFrameRow{DataFrames.DataFrame,DataFrames.Index}, 118 Float64, 119 }, 120 ) 121 precompile(Tuple{typeof(JuBot.Data.is_incomplete_candle),Float64,Float64}) 122 precompile(Tuple{typeof(JuBot.Data.is_last_complete_candle),Float64,String}) 123 precompile(Tuple{typeof(JuBot.Exchanges.__init__)}) 124 precompile(Tuple{typeof(JuBot.Exchanges.loadmarkets!),PyCall.PyObject}) 125 precompile(Tuple{typeof(JuBot.Exchanges.to_df),Array{Float64,2}}) 126 precompile(Tuple{typeof(JuBot.Misc.Pbar.__init__)}) 127 precompile(Tuple{typeof(JuBot.Misc.tfnum),Dates.Hour}) 128 precompile(Tuple{typeof(JuBot.Misc.timefloat),Dates.DateTime}) 129 precompile(Tuple{typeof(JuBot.Misc.timefloat),Dates.Millisecond}) 130 end