public static class TAQConfig.Builder extends Object
Constructor and Description |
---|
Builder()
Create a configuration builder.
|
Modifier and Type | Method and Description |
---|---|
TAQConfig |
build()
Build the configuration.
|
TAQConfig.Builder |
setEncoding(Charset encoding)
Set the encoding.
|
TAQConfig.Builder |
setPriceFractionDigits(int fractionDigits)
Set the default number of digits in the fractional part of a price.
|
TAQConfig.Builder |
setPriceFractionDigits(String instrument,
int fractionDigits)
Set the number of digits in the fractional part of a price.
|
TAQConfig.Builder |
setSizeFractionDigits(int fractionDigits)
Set the default number of digits in the fractional part of a size.
|
TAQConfig.Builder |
setSizeFractionDigits(String instrument,
int fractionDigits)
Set the number of digits in the fractional part of a size.
|
public TAQConfig.Builder setEncoding(Charset encoding)
encoding
- the encodingpublic TAQConfig.Builder setPriceFractionDigits(String instrument, int fractionDigits)
instrument
- the instrumentfractionDigits
- the number of digits in the fractional part
of a pricepublic TAQConfig.Builder setSizeFractionDigits(String instrument, int fractionDigits)
instrument
- the instrumentfractionDigits
- the number of digits in the fractional part
of a sizepublic TAQConfig.Builder setPriceFractionDigits(int fractionDigits)
fractionDigits
- the default number of digits in the
fractional part of a pricepublic TAQConfig.Builder setSizeFractionDigits(int fractionDigits)
fractionDigits
- the default number of digits in the
fractional part of a sizepublic TAQConfig build()
Copyright © 2017. All rights reserved.