Ejemplo n.º 1
0
        /// <summary>
        /// Create a new instance of BinanceBrokerageClient using provided options
        /// </summary>
        /// <param name="options">The options to use for this client</param>
        public BinanceBrokerageClient(BinanceBrokerageClientOptions options)
            : base(options, options.ApiCredentials == null ? null : new BinanceAuthenticationProvider(options.ApiCredentials, ArrayParametersSerialization.MultipleValues))
        {
            autoTimestamp = options.AutoTimestamp;
            autoTimestampRecalculationInterval = options.AutoTimestampRecalculationInterval;
            timestampOffset      = options.TimestampOffset;
            defaultReceiveWindow = options.ReceiveWindow;

            postParametersPosition  = PostParameters.InBody;
            requestBodyFormat       = RequestBodyFormat.FormData;
            requestBodyEmptyContent = "";
        }
 /// <summary>
 /// Set the default options to be used when creating new clients
 /// </summary>
 /// <param name="options"></param>
 public static void SetDefaultOptions(BinanceBrokerageClientOptions options)
 {
     defaultOptions = options;
 }