#![allow(non_snake_case, unused, dead_code, clippy::all)]
use crate::Value;
use super::p2b::P2bCore;
use crate::exchange::ExchangeRuntime;
impl P2bCore {
pub async fn public_get_markets(&mut self, optional_args: &[Value]) -> Value {
self.call_method(Value::Str("public_get_markets".into()), optional_args).await
}
pub async fn public_get_market(&mut self, optional_args: &[Value]) -> Value {
self.call_method(Value::Str("public_get_market".into()), optional_args).await
}
pub async fn public_get_tickers(&mut self, optional_args: &[Value]) -> Value {
self.call_method(Value::Str("public_get_tickers".into()), optional_args).await
}
pub async fn public_get_ticker(&mut self, optional_args: &[Value]) -> Value {
self.call_method(Value::Str("public_get_ticker".into()), optional_args).await
}
pub async fn public_get_book(&mut self, optional_args: &[Value]) -> Value {
self.call_method(Value::Str("public_get_book".into()), optional_args).await
}
pub async fn public_get_history(&mut self, optional_args: &[Value]) -> Value {
self.call_method(Value::Str("public_get_history".into()), optional_args).await
}
pub async fn public_get_depth_result(&mut self, optional_args: &[Value]) -> Value {
self.call_method(Value::Str("public_get_depth_result".into()), optional_args).await
}
pub async fn public_get_market_kline(&mut self, optional_args: &[Value]) -> Value {
self.call_method(Value::Str("public_get_market_kline".into()), optional_args).await
}
pub async fn private_post_account_balances(&mut self, optional_args: &[Value]) -> Value {
self.call_method(Value::Str("private_post_account_balances".into()), optional_args).await
}
pub async fn private_post_account_balance(&mut self, optional_args: &[Value]) -> Value {
self.call_method(Value::Str("private_post_account_balance".into()), optional_args).await
}
pub async fn private_post_order_new(&mut self, optional_args: &[Value]) -> Value {
self.call_method(Value::Str("private_post_order_new".into()), optional_args).await
}
pub async fn private_post_order_cancel(&mut self, optional_args: &[Value]) -> Value {
self.call_method(Value::Str("private_post_order_cancel".into()), optional_args).await
}
pub async fn private_post_orders(&mut self, optional_args: &[Value]) -> Value {
self.call_method(Value::Str("private_post_orders".into()), optional_args).await
}
pub async fn private_post_account_market_order_history(&mut self, optional_args: &[Value]) -> Value {
self.call_method(Value::Str("private_post_account_market_order_history".into()), optional_args).await
}
pub async fn private_post_account_market_deal_history(&mut self, optional_args: &[Value]) -> Value {
self.call_method(Value::Str("private_post_account_market_deal_history".into()), optional_args).await
}
pub async fn private_post_account_order(&mut self, optional_args: &[Value]) -> Value {
self.call_method(Value::Str("private_post_account_order".into()), optional_args).await
}
pub async fn private_post_account_order_history(&mut self, optional_args: &[Value]) -> Value {
self.call_method(Value::Str("private_post_account_order_history".into()), optional_args).await
}
pub async fn private_post_account_executed_history(&mut self, optional_args: &[Value]) -> Value {
self.call_method(Value::Str("private_post_account_executed_history".into()), optional_args).await
}
}