Skip to content

Commit

Permalink
export stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
tyleroooo committed Aug 20, 2024
1 parent e8ca374 commit 4d05500
Show file tree
Hide file tree
Showing 62 changed files with 130 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,13 @@
package indexer.codegen

import kotlinx.serialization.Serializable
import kotlin.js.JsExport

/**
*
* Values: OPEN,FILLED,CANCELED,BEST_EFFORT_CANCELED,UNTRIGGERED,BEST_EFFORT_OPENED
*/
@JsExport
@Serializable
enum class IndexerAPIOrderStatus(val value: kotlin.String) {
OPEN("OPEN"), // :/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,13 @@
package indexer.codegen

import kotlinx.serialization.Serializable
import kotlin.js.JsExport

/**
*
* Values: GTT,FOK,IOC
*/
@JsExport
@Serializable
enum class IndexerAPITimeInForce(val value: kotlin.String) {
GTT("GTT"), // :/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,14 @@
package indexer.codegen

import kotlinx.serialization.Serializable
import kotlin.js.JsExport

/**
*
* @param subaccounts
* @param totalTradingRewards
*/
@JsExport
@Serializable
data class IndexerAddressResponse(

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,11 @@
package indexer.codegen

import kotlinx.serialization.Serializable
import kotlin.js.JsExport

/**
*
*/
@JsExport
@Serializable
class IndexerAllOfPerpetualPositionResponseObjectClosedAt()
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,13 @@
package indexer.codegen

import kotlinx.serialization.Serializable
import kotlin.js.JsExport

/**
*
* @param positions
*/
@JsExport
@Serializable
data class IndexerAssetPositionResponse(

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
package indexer.codegen

import kotlinx.serialization.Serializable
import kotlin.js.JsExport

/**
*
Expand All @@ -21,6 +22,7 @@ import kotlinx.serialization.Serializable
* @param assetId
* @param subaccountNumber
*/
@JsExport
@Serializable
data class IndexerAssetPositionResponseObject(

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,11 @@
package indexer.codegen

import kotlinx.serialization.Serializable
import kotlin.js.JsExport

/**
*
*/
@JsExport
@Serializable
class IndexerAssetPositionsMap()
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,13 @@
package indexer.codegen

import kotlinx.serialization.Serializable
import kotlin.js.JsExport

/**
*
* Values: BESTEFFORTOPENED
*/
@JsExport
@Serializable
enum class IndexerBestEffortOpenedStatus(val value: kotlin.String) {
BESTEFFORTOPENED("BEST_EFFORT_OPENED"); // :/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,14 @@
*/
package indexer.codegen

import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
import kotlin.js.JsExport

/**
*
* Values: _1MIN,_5MINS,_15MINS,_30MINS,_1HOUR,_4HOURS,_1DAY
*/
@JsExport
@Serializable
enum class IndexerCandleResolution(val value: kotlin.String) {
@SerialName("1MIN")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,13 @@
package indexer.codegen

import kotlinx.serialization.Serializable
import kotlin.js.JsExport

/**
*
* @param candles
*/
@JsExport
@Serializable
data class IndexerCandleResponse(

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
package indexer.codegen

import kotlinx.serialization.Serializable
import kotlin.js.JsExport

/**
*
Expand All @@ -26,8 +27,11 @@ import kotlinx.serialization.Serializable
* @param usdVolume
* @param trades
* @param startingOpenInterest
* @param orderbookMidPriceOpen
* @param orderbookMidPriceClose
* @param id
*/
@JsExport
@Serializable
data class IndexerCandleResponseObject(

Expand All @@ -42,5 +46,7 @@ data class IndexerCandleResponseObject(
val usdVolume: kotlin.String? = null,
val trades: kotlin.Double? = null,
val startingOpenInterest: kotlin.String? = null,
val orderbookMidPriceOpen: kotlin.String? = null,
val orderbookMidPriceClose: kotlin.String? = null,
val id: kotlin.String? = null
)
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,13 @@
package indexer.codegen

import kotlinx.serialization.Serializable
import kotlin.js.JsExport

/**
*
* Values: MANUAL,USGEO,CAGEO,GBGEO,SANCTIONEDGEO,COMPLIANCEPROVIDER
*/
@JsExport
@Serializable
enum class IndexerComplianceReason(val value: kotlin.String) {
MANUAL("MANUAL"), // :/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,14 @@
package indexer.codegen

import kotlinx.serialization.Serializable
import kotlin.js.JsExport

/**
*
* @param restricted
* @param reason
*/
@JsExport
@Serializable
data class IndexerComplianceResponse(

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,13 @@
package indexer.codegen

import kotlinx.serialization.Serializable
import kotlin.js.JsExport

/**
*
* Values: COMPLIANT,FIRSTSTRIKECLOSEONLY,FIRSTSTRIKE,CLOSEONLY,BLOCKED
*/
@JsExport
@Serializable
enum class IndexerComplianceStatus(val value: kotlin.String) {
COMPLIANT("COMPLIANT"), // :/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,15 @@
package indexer.codegen

import kotlinx.serialization.Serializable
import kotlin.js.JsExport

/**
*
* @param status
* @param reason
* @param updatedAt
*/
@JsExport
@Serializable
data class IndexerComplianceV2Response(

Expand Down
2 changes: 2 additions & 0 deletions src/commonMain/kotlin/indexer/codegen/IndexerFillResponse.kt
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
package indexer.codegen

import kotlinx.serialization.Serializable
import kotlin.js.JsExport

/**
*
Expand All @@ -20,6 +21,7 @@ import kotlinx.serialization.Serializable
* @param offset
* @param fills
*/
@JsExport
@Serializable
data class IndexerFillResponse(

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
package indexer.codegen

import kotlinx.serialization.Serializable
import kotlin.js.JsExport

/**
*
Expand All @@ -30,6 +31,7 @@ import kotlinx.serialization.Serializable
* @param clientMetadata
* @param subaccountNumber
*/
@JsExport
@Serializable
data class IndexerFillResponseObject(

Expand Down
2 changes: 2 additions & 0 deletions src/commonMain/kotlin/indexer/codegen/IndexerFillType.kt
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,13 @@
package indexer.codegen

import kotlinx.serialization.Serializable
import kotlin.js.JsExport

/**
*
* Values: LIMIT,LIQUIDATED,LIQUIDATION,DELEVERAGED,OFFSETTING
*/
@JsExport
@Serializable
enum class IndexerFillType(val value: kotlin.String) {
LIMIT("LIMIT"), // :/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,14 @@
package indexer.codegen

import kotlinx.serialization.Serializable
import kotlin.js.JsExport

/**
*
* @param height
* @param time
*/
@JsExport
@Serializable
data class IndexerHeightResponse(

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,15 @@
package indexer.codegen

import kotlinx.serialization.Serializable
import kotlin.js.JsExport

/**
*
* @param tradingReward
* @param createdAt
* @param createdAtHeight
*/
@JsExport
@Serializable
data class IndexerHistoricalBlockTradingReward(

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,13 @@
package indexer.codegen

import kotlinx.serialization.Serializable
import kotlin.js.JsExport

/**
*
* @param rewards
*/
@JsExport
@Serializable
data class IndexerHistoricalBlockTradingRewardsResponse(

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,13 @@
package indexer.codegen

import kotlinx.serialization.Serializable
import kotlin.js.JsExport

/**
*
* @param historicalFunding
*/
@JsExport
@Serializable
data class IndexerHistoricalFundingResponse(

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
package indexer.codegen

import kotlinx.serialization.Serializable
import kotlin.js.JsExport

/**
*
Expand All @@ -21,6 +22,7 @@ import kotlinx.serialization.Serializable
* @param effectiveAt
* @param effectiveAtHeight
*/
@JsExport
@Serializable
data class IndexerHistoricalFundingResponseObject(

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
package indexer.codegen

import kotlinx.serialization.Serializable
import kotlin.js.JsExport

/**
*
Expand All @@ -20,6 +21,7 @@ import kotlinx.serialization.Serializable
* @param offset
* @param historicalPnl
*/
@JsExport
@Serializable
data class IndexerHistoricalPnlResponse(

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
package indexer.codegen

import kotlinx.serialization.Serializable
import kotlin.js.JsExport

/**
*
Expand All @@ -22,6 +23,7 @@ import kotlinx.serialization.Serializable
* @param endedAtHeight
* @param period
*/
@JsExport
@Serializable
data class IndexerHistoricalTradingRewardAggregation(

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,13 @@
package indexer.codegen

import kotlinx.serialization.Serializable
import kotlin.js.JsExport

/**
*
* @param rewards
*/
@JsExport
@Serializable
data class IndexerHistoricalTradingRewardAggregationsResponse(

Expand Down
Loading

0 comments on commit 4d05500

Please sign in to comment.