All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.osslabz.crypto.TradingAsset Maven / Gradle / Ivy

There is a newer version: 0.5.0
Show newest version
package net.osslabz.crypto;

import java.util.Objects;

/**
 * Identifies a trading asset (a currency pair on a specific exchange).
 *
 * @param exchange
 * @param currencyPair
 */
public record TradingAsset(Exchange exchange, CurrencyPair currencyPair) {
    public TradingAsset {
        Objects.requireNonNull(exchange, "exchange cannot be null");
        Objects.requireNonNull(currencyPair, "currencyPair cannot be null");
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy